* @throws \Civi\API\Exception\UnauthorizedException
*/
function _civicrm_api3_logging_revert_spec(&$params) {
- $params['log_conn_id'] = array(
+ $params['log_conn_id'] = [
'title' => 'Logging Connection ID',
'type' => CRM_Utils_Type::T_STRING,
'api.required' => TRUE,
- );
- $params['log_date'] = array(
+ ];
+ $params['log_date'] = [
'title' => 'Logging Timestamp',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
- );
- $params['interval'] = array(
+ ];
+ $params['interval'] = [
'title' => ts('Interval (required if date is included)'),
'type' => CRM_Utils_Type::T_STRING,
'api.default' => '10 SECOND',
'description' => ts('Used when log_date is passed in'),
- );
+ ];
- $params['tables'] = array(
+ $params['tables'] = [
'title' => ts('Tables to revert'),
'type' => CRM_Utils_Type::T_STRING,
'description' => ts('Tables to revert, if not set all contact-referring entities will be reverted'),
- );
+ ];
}
/**
* @throws \Civi\API\Exception\UnauthorizedException
*/
function _civicrm_api3_logging_get_spec(&$params) {
- $params['log_conn_id'] = array(
+ $params['log_conn_id'] = [
'title' => 'Logging Connection ID',
'type' => CRM_Utils_Type::T_STRING,
'api.required' => TRUE,
- );
- $params['log_date'] = array(
+ ];
+ $params['log_date'] = [
'title' => 'Logging Timestamp',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
- );
- $params['interval'] = array(
+ ];
+ $params['interval'] = [
'title' => ts('Interval (required if date is included)'),
'type' => CRM_Utils_Type::T_STRING,
'api.default' => '10 SECOND',
'description' => ts('Used when log_date is passed in'),
- );
- $params['tables'] = array(
+ ];
+ $params['tables'] = [
'title' => ts('Tables to query'),
'type' => CRM_Utils_Type::T_STRING,
'description' => ts('Tables to query, if not set all contact-referring entities will be queried'),
- );
+ ];
}