3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
13 * This api exposes CiviCRM SystemLog.
15 * @package CiviCRM_APIv3
19 * Delete system log record.
21 * @param array $params
25 function civicrm_api3_system_log_delete($params) {
26 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
30 * Create system log record.
32 * It's arguable whether this function should exist as it fits our crud pattern and adding it meets our SyntaxConformance test requirements
33 * but it just wraps system.log which is more consistent with the PSR3 implemented.
35 * @param array $params
39 function civicrm_api3_system_log_create($params) {
40 return civicrm_api3('system', 'log', $params);
44 * Adjust system log create metadata.
46 * @param array $params
48 function _civicrm_api3_system_log_create_spec(&$params) {
49 require_once 'api/v3/System.php';
50 _civicrm_api3_system_log_spec($params);
54 * Get system log record.
56 * @param array $params
60 function civicrm_api3_system_log_get($params) {
61 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__
), $params, TRUE, 'SystemLog');