X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FEvent%2FDAO%2FUnsubscribe.php;h=d18f977fab8018ce8d8ec961003748110a01f42b;hb=d501975f61139c0a8f4ad34092cd4007028b7053;hp=b7dd2dbcfbe39ddbe34fb576884ec50be3e0e88e;hpb=1753660dd5f1b8f8137da4b7376e28286c6e99a8;p=civicrm-core.git diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php index b7dd2dbcfb..d18f977fab 100644 --- a/CRM/Mailing/Event/DAO/Unsubscribe.php +++ b/CRM/Mailing/Event/DAO/Unsubscribe.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:459e65f073984db62e5e6ca22f121044) + * (GenCodeChecksum:a44ecc4ce8b1a8ecdca57fff8d053392) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -70,7 +70,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { /** * When this delivery event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -110,6 +110,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { 'table_name' => 'civicrm_mailing_event_unsubscribe', 'entity' => 'Unsubscribe', 'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe', + 'localizable' => 0, ) , 'event_queue_id' => array( 'name' => 'event_queue_id', @@ -120,6 +121,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { 'table_name' => 'civicrm_mailing_event_unsubscribe', 'entity' => 'Unsubscribe', 'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe', + 'localizable' => 0, 'FKClassName' => 'CRM_Mailing_Event_DAO_Queue', ) , 'org_unsubscribe' => array( @@ -131,16 +133,19 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { 'table_name' => 'civicrm_mailing_event_unsubscribe', 'entity' => 'Unsubscribe', 'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe', + 'localizable' => 0, ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Unsubscribe Timestamp') , 'description' => 'When this delivery event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_unsubscribe', 'entity' => 'Unsubscribe', 'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe', + 'localizable' => 0, ) , ); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); @@ -197,4 +202,11 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_unsubscribe', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array(); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } }