*
* @param array $params
* Array of name-value pairs of log table.
- *
+ * @return CRM_Core_DAO_Log
*/
public static function add(&$params) {
-
$log = new CRM_Core_DAO_Log();
$log->copyValues($params);
$log->save();
+ return $log;
}
/**
--- /dev/null
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved. |
+ | |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+ +--------------------------------------------------------------------+
+ */
+namespace Civi\Api4;
+
+/**
+ * Log
+ *
+ * @since 5.49
+ * @package Civi\Api4
+ */
+class Log extends Generic\DAOEntity {
+ use Generic\Traits\ReadOnlyEntity;
+
+}