Merge branch '4.7.19-rc' of https://github.com/civicrm/civicrm-core
[civicrm-core.git] / CRM / Mailing / Event / DAO / Reply.php
index 9451364600378c85e72f6e1534c24c8e75a6f3a1..d5f3085cb45ceea28879c8ee855fe4ae372ea385 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Reply.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b4b1d874923b9181d155aeffd8639a6a)
+ * (GenCodeChecksum:c820f3b64d2152014b47a738c32f1f84)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -64,7 +64,7 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO {
   /**
    * When this reply event occurred.
    *
-   * @var datetime
+   * @var timestamp
    */
   public $time_stamp;
   /**
@@ -104,6 +104,7 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO {
           'table_name' => 'civicrm_mailing_event_reply',
           'entity' => 'Reply',
           'bao' => 'CRM_Mailing_Event_BAO_Reply',
+          'localizable' => 0,
         ) ,
         'event_queue_id' => array(
           'name' => 'event_queue_id',
@@ -114,17 +115,20 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO {
           'table_name' => 'civicrm_mailing_event_reply',
           'entity' => 'Reply',
           'bao' => 'CRM_Mailing_Event_BAO_Reply',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_Queue',
         ) ,
         '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('Reply Timestamp') ,
           'description' => 'When this reply event occurred.',
           'required' => true,
+          'default' => 'CURRENT_TIMESTAMP',
           'table_name' => 'civicrm_mailing_event_reply',
           'entity' => 'Reply',
           'bao' => 'CRM_Mailing_Event_BAO_Reply',
+          'localizable' => 0,
         ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
@@ -181,4 +185,11 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_reply', $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;
+  }
 }