Merge pull request #17656 from civicrm/5.27
[civicrm-core.git] / api / v3 / Exception.php
CommitLineData
b23a2a3b
AP
1<?php
2/*
3 +--------------------------------------------------------------------+
a30c801b 4 | Copyright CiviCRM LLC. All rights reserved. |
b23a2a3b 5 | |
a30c801b
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 |
b23a2a3b
AP
9 +--------------------------------------------------------------------+
10 */
7c31ae57 11
b23a2a3b
AP
12/**
13 * Get a Dedupe Exception.
14 *
15 * @param array $params
16 * Array per getfields metadata.
17 *
18 * @return array
19 * Array of all found dedupe exception object property values.
20 */
21function civicrm_api3_exception_get($params) {
22 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
23}
7c31ae57 24
b23a2a3b
AP
25/**
26 * Create or update an dedupe exception.
27 *
28 * @param array $params
29 * Array per getfields metadata.
30 *
31 * @return array api result array
32 */
33function civicrm_api3_exception_create($params) {
34 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Exception');
35}
b5c67323 36
b23a2a3b
AP
37/**
38 * Delete an existing Exception.
39 *
40 * This method is used to delete any existing Exception given its id.
41 *
42 * @param array $params
43 * [id]
44 *
45 * @return array api result array
46 */
47function civicrm_api3_exception_delete($params) {
48 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
49}