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