Merge pull request #17896 from eileenmcnaughton/pdfletter
[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 */
17
18 /**
19 * This class contains all the function that are called using AJAX
20 */
21 class CRM_UF_Page_AJAX {
22
23 /**
24 * Function the check whether the field belongs.
25 * to multi-record custom set
26 */
27 public function checkIsMultiRecord() {
28 $customId = $_GET['customId'];
29
30 $isMultiple = CRM_Core_BAO_CustomField::isMultiRecordField($customId);
31 $isMultiple = ['is_multi' => $isMultiple];
32 CRM_Utils_JSON::output($isMultiple);
33 }
34
35 }