* This class contains the functions that are called using AJAX (jQuery)
*/
class CRM_Group_Page_AJAX {
+ /**
+ * Get list of groups.
+ *
+ * @return array
+ */
public static function getGroupList() {
$params = $_REQUEST;
if (!empty($params['is_unit_test'])) {
return array($groups, $iFilteredTotal);
}
+ header('Content-Type: application/json');
echo CRM_Utils_JSON::encodeDataTableSelector($groups, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}