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
21 * This class contains all the function that are called using AJAX
23 class CRM_UF_Page_AJAX
{
26 * Function the check whether the field belongs.
27 * to multi-record custom set
29 public function checkIsMultiRecord() {
30 $customId = $_GET['customId'];
32 $isMultiple = CRM_Core_BAO_CustomField
::isMultiRecordField($customId);
33 $isMultiple = ['is_multi' => $isMultiple];
34 CRM_Utils_JSON
::output($isMultiple);