summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/json.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-01 10:19:36 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-01 10:19:36 -0700
commitbf7115cf5a732cea2d498971ec94d2ade3b2fcdd (patch)
tree81af4ec2993f740fb632c9f5ea4572bb2d1efa23 /modules/gallery/helpers/json.php
parentcd50fde5dea97f10d8eb62e0e2058846ce9abdfe (diff)
Write appropriate PHPdoc for json::reply.
Diffstat (limited to 'modules/gallery/helpers/json.php')
-rw-r--r--modules/gallery/helpers/json.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/gallery/helpers/json.php b/modules/gallery/helpers/json.php
index bbd835e9..a39db27a 100644
--- a/modules/gallery/helpers/json.php
+++ b/modules/gallery/helpers/json.php
@@ -19,11 +19,10 @@
*/
class json_Core {
/**
- * Does the active user have this permission on this item?
+ * JSON Encode a reply to the browser and set the content type to specify that it's a JSON
+ * payload.
*
- * @param string $perm_name
- * @param Item_Model $item
- * @return boolean
+ * @param mixed $message string or object to json encode and print
*/
static function reply($message) {
if (!headers_sent()) {