From 82e7e493db85368324be8e9fd9249de7d5942dfe Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 12 Mar 2022 11:47:00 -0500 Subject: [PATCH] regenerate DAO --- CRM/Event/DAO/Event.php | 64 +++++++++-------------------------------- 1 file changed, 13 insertions(+), 51 deletions(-) diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php index afc84033dc..54ed4922ca 100644 --- a/CRM/Event/DAO/Event.php +++ b/CRM/Event/DAO/Event.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Event.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d9ea1f641de04dabb54616ef4edfe88c) + * (GenCodeChecksum:894f53608aa8036de5fab1dc90a407d5) */ /** @@ -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. */ @@ -865,15 +856,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', @@ -886,15 +875,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', @@ -940,12 +927,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', @@ -959,12 +944,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', @@ -1935,27 +1918,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']); } -- 2.25.1