+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016 |
+| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
*
* Generated from xml/schema/CRM/Core/SystemLog.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:de437db587f1fb4d7f90320e3e42db2c)
+ * (GenCodeChecksum:74683682d7114abb261677b351cd8711)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_SystemLog constructor.
+ */
class CRM_Core_DAO_SystemLog extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_system_log';
/**
- * static value to see if we should log any modifications to
- * this table in the civicrm_log table
+ * Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var boolean
*/
*/
public $hostname;
/**
- * class constructor
- *
- * @return civicrm_system_log
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_system_log';
'title' => ts('System Log ID') ,
'description' => 'Primary key ID',
'required' => true,
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
'message' => array(
'name' => 'message',
'required' => true,
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
'context' => array(
'name' => 'context',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Detailed Log Data') ,
'description' => 'JSON encoded data',
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
'level' => array(
'name' => 'level',
'maxlength' => 9,
'size' => CRM_Utils_Type::TWELVE,
'default' => 'info',
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
'timestamp' => array(
'name' => 'timestamp',
'title' => ts('Log Timestamp') ,
'description' => 'Timestamp of when event occurred.',
'default' => 'CURRENT_TIMESTAMP',
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
'contact_id' => array(
'name' => 'contact_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Log Contact ID') ,
'description' => 'Optional Contact ID that created the log. Not an FK as we keep this regardless',
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
'hostname' => array(
'name' => 'hostname',
'description' => 'Optional Name of logging host',
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_system_log',
+ 'entity' => 'SystemLog',
+ 'bao' => 'CRM_Core_DAO_SystemLog',
+ 'localizable' => 0,
) ,
);
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);