Merge pull request #17583 from civicrm/5.27
[civicrm-core.git] / CRM / UF / Page / AJAX.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 * $Id$
17 *
18 */
19
20 /**
21 * This class contains all the function that are called using AJAX
22 */
23 class CRM_UF_Page_AJAX {
24
25 /**
26 * Function the check whether the field belongs.
27 * to multi-record custom set
28 */
29 public function checkIsMultiRecord() {
30 $customId = $_GET['customId'];
31
32 $isMultiple = CRM_Core_BAO_CustomField::isMultiRecordField($customId);
33 $isMultiple = ['is_multi' => $isMultiple];
34 CRM_Utils_JSON::output($isMultiple);
35 }
36
37 }