3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class contains all the function that are called using AJAX
21 class CRM_UF_Page_AJAX
{
24 * Function the check whether the field belongs.
25 * to multi-record custom set
27 public static function checkIsMultiRecord() {
28 $customId = $_GET['customId'];
30 $isMultiple = CRM_Core_BAO_CustomField
::isMultiRecordField($customId);
31 $isMultiple = ['is_multi' => $isMultiple];
32 CRM_Utils_JSON
::output($isMultiple);