Merge pull request #24142 from eileenmcnaughton/mem_test
[civicrm-core.git] / CRM / Event / DAO / Event.php
index 3a93606064c1c6d4a98d1012500f677c36dfb611..b949ec5b81d26f80569c7fb81f613588f41b3eb3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Event.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a26fb9bb9dfd05cdbecc91904f4b1d4)
+ * (GenCodeChecksum:ddad900cfc0f303d651fa7b935157992)
  */
 
 /**
@@ -121,8 +121,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that event starts.
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $start_date;
@@ -130,8 +130,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that event ends. May be NULL if no defined end date/time
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $end_date;
@@ -157,8 +157,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that online registration starts.
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $registration_start_date;
@@ -166,8 +166,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that online registration ends.
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $registration_end_date;
@@ -674,15 +674,6 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
    */
   public $is_billing_required;
 
-  /**
-   * Event's native time zone
-   *
-   * @var string|null
-   *   (SQL type: text)
-   *   Note that values will be retrieved from the database as a string.
-   */
-  public $event_tz;
-
   /**
    * Class constructor.
    */
@@ -866,15 +857,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'event_start_date' => [
           'name' => 'start_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Event Start Date'),
           'description' => ts('Date and time that event starts.'),
-          'required' => FALSE,
           'import' => TRUE,
           'where' => 'civicrm_event.start_date',
           'headerPattern' => '/^start|(s(tart\s)?date)$/i',
           'export' => TRUE,
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -887,15 +876,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'event_end_date' => [
           'name' => 'end_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Event End Date'),
           'description' => ts('Date and time that event ends. May be NULL if no defined end date/time'),
-          'required' => FALSE,
           'import' => TRUE,
           'where' => 'civicrm_event.end_date',
           'headerPattern' => '/^end|(e(nd\s)?date)$/i',
           'export' => TRUE,
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -942,12 +929,10 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'registration_start_date' => [
           'name' => 'registration_start_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Registration Start Date'),
           'description' => ts('Date and time that online registration starts.'),
-          'required' => FALSE,
           'where' => 'civicrm_event.registration_start_date',
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -961,12 +946,10 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'registration_end_date' => [
           'name' => 'registration_end_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Registration End Date'),
           'description' => ts('Date and time that online registration ends.'),
-          'required' => FALSE,
           'where' => 'civicrm_event.registration_end_date',
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1129,7 +1112,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         'is_show_location' => [
           'name' => 'is_show_location',
           'type' => CRM_Utils_Type::T_BOOLEAN,
-          'title' => ts('show location'),
+          'title' => ts('Show Location'),
           'description' => ts('If true, show event location.'),
           'required' => TRUE,
           'where' => 'civicrm_event.is_show_location',
@@ -1954,27 +1937,6 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           ],
           'add' => '4.6',
         ],
-        'event_tz' => [
-          'name' => 'event_tz',
-          'type' => CRM_Utils_Type::T_TEXT,
-          'title' => ts('Event Time Zone'),
-          'description' => ts('Event\'s native time zone'),
-          'import' => TRUE,
-          'where' => 'civicrm_event.event_tz',
-          'export' => TRUE,
-          'default' => NULL,
-          'table_name' => 'civicrm_event',
-          'entity' => 'Event',
-          'bao' => 'CRM_Event_BAO_Event',
-          'localizable' => 0,
-          'html' => [
-            'type' => 'Select',
-          ],
-          'pseudoconstant' => [
-            'callback' => 'CRM_Core_SelectValues::timezone',
-          ],
-          'add' => '5.47',
-        ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }