Merge pull request #23895 from colemanw/searchKitManaged
[civicrm-core.git] / CRM / Core / BAO / ActionLog.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
bc77d7c0
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 |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 */
17
18/**
19 * This class contains functions for managing Action Logs
20 */
21class CRM_Core_BAO_ActionLog extends CRM_Core_DAO_ActionLog {
22
23 /**
fe482240 24 * Create or update an action log entry.
6a488035 25 *
c490a46a 26 * @param array $params
77b97be7 27 *
3e2eb420 28 * @return CRM_Core_DAO_ActionLog
6a488035 29 */
00be9182 30 public static function create($params) {
3e2eb420
CW
31 if (empty($params['id'])) {
32 $params['action_date_time'] = $params['action_date_time'] ?? date('YmdHis');
33 }
6a488035 34
0419bf7b 35 return self::writeRecord($params);
6a488035 36 }
96025800 37
6a488035 38}