Exemple #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'booking_id' => array('name' => 'booking_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Booking_DAO_Booking'), 'resource_id' => array('name' => 'resource_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Booking_DAO_Resource'), 'config_id' => array('name' => 'config_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Booking_DAO_ResourceConfigOption'), 'start' => array('name' => 'start', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Start'), 'required' => true), 'end' => array('name' => 'end', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('End'), 'required' => true), 'quantity' => array('name' => 'quantity', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Quantity'), 'required' => true), 'note' => array('name' => 'note', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Note')), 'is_cancelled' => array('name' => 'is_cancelled', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Slot is cancelled'), 'import' => true, 'where' => 'civicrm_booking_slot.is_cancelled', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'is_deleted' => array('name' => 'is_deleted', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Slot is in the Trash'), 'import' => true, 'where' => 'civicrm_booking_slot.is_deleted', 'headerPattern' => '', 'dataPattern' => '', 'export' => true));
     }
     return self::$_fields;
 }