Merge pull request #17008 from ivan-compucorp/CPS-70-fix-radio-value
[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 * $Id$
17 *
18 */
19
20 /**
21 * This class contains functions for managing Action Logs
22 */
23 class CRM_Core_BAO_ActionLog extends CRM_Core_DAO_ActionLog {
24
25 /**
26 * Create or update an action log entry.
27 *
28 * @param array $params
29 *
30 * @return array
31 */
32 public static function create($params) {
33 $params['action_date_time'] = $params['action_date_time'] ?? date('YmdHis');
34
35 return self::writeRecord($params);
36 }
37
38 }