Merge pull request #15307 from seamuslee001/dev_core_1249
[civicrm-core.git] / api / v3 / Phone / Get.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 * @package CiviCRM_APIv3
14 */
15
16 /**
17 * Retrieve one or more phones.
18 *
19 * This function has been declared there instead than in api/v3/Phone.php
20 * for no specific reasons, beside to demonstrate this feature
21 * (that might be useful in your module, eg if you want to implement a
22 * civicrm_api ('Phone','Dial') that you would then simply put in
23 * your module under api/v3/Phone/Dial.php.
24 *
25 * @param array $params
26 * Array per getfields metadata.
27 *
28 * @return array
29 * API result array
30 */
31 function civicrm_api3_phone_get($params) {
32 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
33 }