X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FActionLog.php;h=fe50dac0a2df6a6258586bbee64480b2f4cafdab;hb=146d89958a273935ea97b4157fa8c89c7a5bffc5;hp=e9332bde1b12c32e40d1593e15bf6a3010b3f657;hpb=463f73bb980ff65f0aac059424804519cc8f5ef9;p=civicrm-core.git diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index e9332bde1b..fe50dac0a2 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ -| Copyright CiviCRM LLC (c) 2004-2016 | +| Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -26,24 +26,26 @@ */ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 * * Generated from xml/schema/CRM/Core/ActionLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:721c03b2046e11d8774a5e14204a28d8) + * (GenCodeChecksum:4ef96df03630ecc884c881b79a40818f) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; +/** + * CRM_Core_DAO_ActionLog constructor. + */ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { /** - * static instance to hold the table name + * Static instance to hold the table name. * * @var string */ static $_tableName = 'civicrm_action_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 */ @@ -108,16 +110,14 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { */ public $reference_date; /** - * class constructor - * - * @return civicrm_action_log + * Class constructor. */ function __construct() { $this->__table = 'civicrm_action_log'; parent::__construct(); } /** - * Returns foreign keys and entity references + * Returns foreign keys and entity references. * * @return array * [CRM_Core_Reference_Interface] @@ -145,12 +145,18 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Action Schedule ID') , 'required' => true, + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'contact_id' => array( 'name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Action Schedule Contact ID') , 'description' => 'FK to Contact ID', + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', 'FKClassName' => 'CRM_Contact_DAO_Contact', ) , 'entity_id' => array( @@ -159,6 +165,9 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'title' => ts('Entity ID') , 'description' => 'FK to id of the entity that the action was performed on. Pseudo - FK.', 'required' => true, + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'entity_table' => array( 'name' => 'entity_table', @@ -167,6 +176,9 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'description' => 'name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'action_schedule_id' => array( 'name' => 'action_schedule_id', @@ -174,6 +186,9 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'title' => ts('Schedule') , 'description' => 'FK to the action schedule that this action originated from.', 'required' => true, + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', 'FKClassName' => 'CRM_Core_DAO_ActionSchedule', ) , 'action_date_time' => array( @@ -181,24 +196,36 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Action Date And Time') , 'description' => 'date time that the action was performed on.', + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'is_error' => array( 'name' => 'is_error', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Error?') , 'description' => 'Was there any error sending the reminder?', + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'message' => array( 'name' => 'message', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Message') , 'description' => 'Description / text in case there was an error encountered.', + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'repetition_number' => array( 'name' => 'repetition_number', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Repetition Number') , 'description' => 'Keeps track of the sequence number of this repetition.', + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , 'reference_date' => array( 'name' => 'reference_date', @@ -206,6 +233,9 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'title' => ts('Reference Date') , 'description' => 'Stores the date from the entity which triggered this reminder action (e.g. membership.end_date for most membership renewal reminders)', 'default' => 'NULL', + 'table_name' => 'civicrm_action_log', + 'entity' => 'ActionLog', + 'bao' => 'CRM_Core_BAO_ActionLog', ) , ); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);