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