Commit | Line | Data |
---|---|---|
ac880f2f | 1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
a30c801b | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
ac880f2f | 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 | | |
ac880f2f | 9 | +--------------------------------------------------------------------+ |
10 | */ | |
11 | ||
12 | /** | |
13 | * This api exposes CiviCRM EntityFinancialAccount. | |
14 | * | |
15 | * @package CiviCRM_APIv3 | |
16 | */ | |
17 | ||
18 | /** | |
19 | * Save an Entity Financial Account record. | |
20 | * | |
21 | * @param array $params | |
22 | * | |
23 | * @return array | |
24 | */ | |
25 | function civicrm_api3_entity_financial_account_create($params) { | |
ddaf2161 | 26 | return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'EntityFinancialAccount'); |
ac880f2f | 27 | } |
28 | ||
29 | /** | |
30 | * Save an Entity Financial Account record. | |
31 | * | |
32 | * @param array $params | |
33 | */ | |
34 | function _civicrm_api3_entity_financial_account_create_spec(&$params) { | |
35 | $params['entity_table']['api.default'] = 'civicrm_financial_type'; | |
36 | } | |
37 | ||
38 | /** | |
39 | * Get an Entity Financial Account record. | |
40 | * | |
41 | * @param array $params | |
42 | * | |
43 | * @return array | |
44 | * Array of retrieved EntityFinancialAccount property values. | |
45 | */ | |
46 | function civicrm_api3_entity_financial_account_get($params) { | |
47 | return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params); | |
48 | } | |
49 | ||
50 | /** | |
51 | * Delete an Entity Financial Account record. | |
52 | * | |
53 | * @param array $params | |
54 | * | |
55 | * @return array | |
56 | * Array of deleted values. | |
57 | */ | |
58 | function civicrm_api3_entity_financial_account_delete($params) { | |
59 | return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); | |
60 | } |