| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_Utils_JSON {
/**
- * Output json to the client
+ * Output json to the client.
* @param mixed $input
*/
public static function output($input) {
}
/**
- * Create JSON object
+ * Create JSON object.
* @deprecated
*
* @param array $params
*
* @return string
* JSON array
- * @static
*/
public static function encode($params, $identifier = 'id') {
$buildObject = array();
* @param array $selectorElements
* Selector rows.
*
- * @return json encode string
+ * @return string
+ * json encoded string
*/
public static function encodeSelector(&$params, $page, $total, $selectorElements) {
$json = "";
}
/**
- * encode data for dataTable plugin
+ * encode data for dataTable plugin.
*
* @param array $params
* Associated array of row elements.
return $sOutput;
}
+
}