From bf7115cf5a732cea2d498971ec94d2ade3b2fcdd Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 1 Aug 2010 10:19:36 -0700 Subject: Write appropriate PHPdoc for json::reply. --- modules/gallery/helpers/json.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/gallery/helpers/json.php') 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()) { -- cgit v1.2.3