*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d9ea1f641de04dabb54616ef4edfe88c)
+ * (GenCodeChecksum:894f53608aa8036de5fab1dc90a407d5)
*/
/**
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
*/
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.
*/
],
'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',
],
'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',
],
'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',
],
'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',
],
'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']);
}