X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FActionLog.php;h=3ebd410feccb48078c95cebfb5a256c2c4159491;hb=4a3c7961f8c578506bdc6b8c0909b1ea435a9739;hp=eb5fb66fccda6918e607dbaea32f756ed07bfbb9;hpb=68329e02970d1191dc0df10447cb128a5b0ea305;p=civicrm-core.git diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index eb5fb66fcc..3ebd410fec 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -2,11 +2,11 @@ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 * * Generated from xml/schema/CRM/Core/ActionLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4ef96df03630ecc884c881b79a40818f) + * (GenCodeChecksum:38f897676ff054f67ba7188470e41dee) */ /** @@ -19,14 +19,14 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_action_log'; + public static $_tableName = 'civicrm_action_log'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = FALSE; + public static $_log = FALSE; /** * @var int unsigned @@ -112,7 +112,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { */ public static function getReferenceColumns() { if (!isset(Civi::$statics[__CLASS__]['links'])) { - Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__); + Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'action_schedule_id', 'civicrm_action_schedule', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table'); @@ -134,6 +134,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Action Schedule ID'), 'required' => TRUE, + 'where' => 'civicrm_action_log.id', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -144,6 +145,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Action Schedule Contact ID'), 'description' => ts('FK to Contact ID'), + 'where' => 'civicrm_action_log.contact_id', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -156,6 +158,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'title' => ts('Entity ID'), 'description' => ts('FK to id of the entity that the action was performed on. Pseudo - FK.'), 'required' => TRUE, + 'where' => 'civicrm_action_log.entity_id', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -168,6 +171,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'description' => ts('name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_action_log.entity_table', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -179,6 +183,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'title' => ts('Schedule'), 'description' => ts('FK to the action schedule that this action originated from.'), 'required' => TRUE, + 'where' => 'civicrm_action_log.action_schedule_id', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -190,6 +195,7 @@ 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' => ts('date time that the action was performed on.'), + 'where' => 'civicrm_action_log.action_date_time', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -200,6 +206,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Error?'), 'description' => ts('Was there any error sending the reminder?'), + 'where' => 'civicrm_action_log.is_error', 'default' => '0', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', @@ -211,6 +218,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Message'), 'description' => ts('Description / text in case there was an error encountered.'), + 'where' => 'civicrm_action_log.message', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -221,6 +229,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Repetition Number'), 'description' => ts('Keeps track of the sequence number of this repetition.'), + 'where' => 'civicrm_action_log.repetition_number', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog', 'bao' => 'CRM_Core_BAO_ActionLog', @@ -231,6 +240,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Reference Date'), 'description' => ts('Stores the date from the entity which triggered this reminder action (e.g. membership.end_date for most membership renewal reminders)'), + 'where' => 'civicrm_action_log.reference_date', 'default' => 'NULL', 'table_name' => 'civicrm_action_log', 'entity' => 'ActionLog',