JsonOutputTrait.php
authorAlan <alan@roojs.com>
Thu, 29 Feb 2024 05:00:15 +0000 (13:00 +0800)
committerAlan <alan@roojs.com>
Thu, 29 Feb 2024 05:00:15 +0000 (13:00 +0800)
JsonOutputTrait.php

index efec308..3d7e240 100644 (file)
@@ -53,6 +53,12 @@ trait Pman_Core_JsonOutputTrait {
     {
         return $this->jerror('ERROR', $str,$errors,$content_type);
     }
+    
+    function jnotice($type, $str, $errors=array(), $content_type = false)
+    {
+        return $this->jerror('NOTICE-' . $type, $str, $errors, $content_type);
+    }
+    
     /**
      * Recomended JSON error indicator
      *
@@ -165,6 +171,10 @@ trait Pman_Core_JsonOutputTrait {
         
     }
     
+     
+   
+    
+    
     function jdata($ar,$total=false, $extra=array(), $cachekey = false)
     {
         // should do mobile checking???