projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbab9a0
)
JsonOutputTrait.php
author
Alan
<alan@roojs.com>
Thu, 29 Feb 2024 05:00:15 +0000
(13:00 +0800)
committer
Alan
<alan@roojs.com>
Thu, 29 Feb 2024 05:00:15 +0000
(13:00 +0800)
JsonOutputTrait.php
patch
|
blob
|
history
diff --git
a/JsonOutputTrait.php
b/JsonOutputTrait.php
index
efec308
..
3d7e240
100644
(file)
--- a/
JsonOutputTrait.php
+++ b/
JsonOutputTrait.php
@@
-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???