<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
* This class contains the functions that are called using AJAX (jQuery)
*/
class CRM_Custom_Page_AJAX {
+
/**
- * Get list of options.
- *
+ * This function uses the deprecated v1 datatable api and needs updating. See CRM-16353.
+ * @deprecated
*/
public static function getOptionList() {
$params = $_REQUEST;
'class',
);
- header('Content-Type: application/json');
+ CRM_Utils_System::setHttpHeader('Content-Type', 'application/json');
echo CRM_Utils_JSON::encodeDataTableSelector($options, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}