/** * 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), 'slot_id' => array('name' => 'slot_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Booking_DAO_Slot'), 'resource_id' => array('name' => 'resource_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Booking_DAO_Resource'), 'config_id' => array('name' => 'config_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Booking_DAO_ResourceConfigOption'), 'time_required' => array('name' => 'time_required', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Time Required'), '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('SubSlot is cancelled'), 'import' => true, 'where' => 'civicrm_booking_sub_slot.is_cancelled', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'is_deleted' => array('name' => 'is_deleted', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('SubSlot is in the Trash'), 'import' => true, 'where' => 'civicrm_booking_sub_slot.is_deleted', 'headerPattern' => '', 'dataPattern' => '', 'export' => true)); } return self::$_fields; }