dev/financial#148 fully deprecate validateData function
[civicrm-core.git] / CRM / Core / BAO / ActionLog.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 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * This class contains functions for managing Action Logs
20 */
21 class CRM_Core_BAO_ActionLog extends CRM_Core_DAO_ActionLog {
22
23 /**
24 * Create or update an action log entry.
25 *
26 * @param array $params
27 *
28 * @return array
29 */
30 public static function create($params) {
31 $params['action_date_time'] = $params['action_date_time'] ?? date('YmdHis');
32
33 return self::writeRecord($params);
34 }
35
36 }