Stud.IP  5.4
RoomRequest Class Reference
Inheritance diagram for RoomRequest:
ResourceRequest SimpleORMap PrivacyObject EventSource

Public Member Functions

 checkOpen ($also_change=false)
 
- Public Member Functions inherited from ResourceRequest
 cbLogNewRequest ()
 
 cbAfterStore ()
 
 cbAfterDelete ()
 
 validate ()
 
 getDerivedClassInstance ()
 
 setRangeFields ($range_type='', $range_ids=[])
 
 closeRequest ($notify_lecturers=false, $bookings=[])
 
 getOverlappingRequests ()
 
 countOverlappingRequests ()
 
 getOverlappingBookings ()
 
 countOverlappingBookings ()
 
 getRepetitionInterval ()
 
 getStartDate ()
 
 getEndDate ()
 
 getStartSemester ()
 
 getEndSemester ()
 
 getRepetitionEndDate ()
 
 getGroupedTimeIntervals ($with_preparation_time=false, $with_past_intervals=true)
 
 getTimeIntervals ($with_preparation_time=false, $with_range=false, $with_past_intervals=true)
 
 getTimeIntervalStrings ()
 
 getTimeIntervalsInTimeRange (DateTime $begin, DateTime $end)
 
 getType ()
 
 getStatus ()
 
 getStatusText ()
 
 getDateString ($as_array=false, $with_past_intervals=true)
 
 getTypeString ($short=false)
 
 getAffectedDates ()
 
 getAvailableProperties ($excluded_property_names=[])
 
 getPropertyData ($excluded_property_names=[])
 
 propertyExists ($name)
 
 getProperty ($name)
 
 getPropertyObject ($name)
 
 setProperty ($name, $state='')
 
 updateProperties ($property_list=[], $accept_null_values=false)
 
 deletePropertyIfExists ($name='')
 
 getRangeName ()
 
 isSimpleRequest ()
 
 getRangeId ()
 
 getRangeType ()
 
 getRangeObject ()
 
 sendNewRequestMail ()
 
 sendCloseRequestMailToRequester ($bookings=[])
 
 sendCloseRequestMailToLecturers ($bookings=[])
 
 sendRequestDeniedMail ()
 
 isReadOnlyForUser (User $user)
 
 getAllEventData ()
 
 getEventDataForTimeRange (DateTime $begin, DateTime $end)
 
 getFilteredEventData ( $user_id=null, $range_id=null, $range_type=null, $begin=null, $end=null)
 
 getPriority ()
 
 getLoggingInfoText ()
 
- Public Member Functions inherited from SimpleORMap
 __construct ($id=null)
 
 __clone ()
 
 getRelationOptions ($relation)
 
 getTableMetadata ()
 
 hasAutoIncrementColumn ()
 
 setId ($id)
 
 getId ()
 
 getNewId ()
 
 toArray ($only_these_fields=null)
 
 toRawArray ($only_these_fields=null)
 
 toArrayRecursive ($only_these_fields=null)
 
 getValue ($field)
 
 getRelationValue ($relation, $field)
 
 getDefaultValue ($field)
 
 setValue ($field, $value)
 
 __get ($field)
 
 __set ($field, $value)
 
 __isset ($field)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 getIterator ()
 
 count ()
 
 isField ($field)
 
 isRelation ($field)
 
 isAdditionalField ($field)
 
 isAliasField ($field)
 
 isI18nField ($field)
 
 setData ($data, $reset=false)
 
 isNew ()
 
 isDeleted ()
 
 setNew ($is_new)
 
 getWhereQuery ()
 
 restore ()
 
 store ()
 
 triggerChdate ()
 
 delete ()
 
 isDirty ()
 
 isFieldDirty ($field)
 
 revertValue ($field)
 
 getPristineValue ($field)
 
 initRelation ($relation)
 
 resetRelation ($relation)
 
 cleanup ()
 
- Public Member Functions inherited from EventSource
 getEventDataForTimeRange (\DateTime $begin, \DateTime $end)
 

Static Protected Member Functions

static configure ($config=[])
 
- Static Protected Member Functions inherited from ResourceRequest
static configure ($config=[])
 
static buildResourceAndTimeRangesSqlQuery (Resource $resource, $time_ranges=[], $closed_status=null, $excluded_request_ids=[], $additional_conditions='', $additional_parameters=[])
 
- Static Protected Member Functions inherited from SimpleORMap
static db_table ()
 
static db_fields ()
 
static pk ()
 
static default_values ()
 
static serialized_fields ()
 
static alias_fields ()
 
static i18n_fields ()
 
static additional_fields ()
 
static has_many ()
 
static has_one ()
 
static belongs_to ()
 
static has_and_belongs_to_many ()
 
static registered_callbacks ()
 
static known_slots ()
 
static notification_map ()
 
static getter_setter_map ()
 
static configure ($config=[])
 
static config ($key)
 
static registerCallback ($types, $cb)
 
static unregisterCallback ($types, $cb)
 

Additional Inherited Members

- Static Public Member Functions inherited from ResourceRequest
static exportUserdata (StoredUserData $storage)
 
static findAll ()
 
static findOpen ()
 
static findByResourceAndTimeRanges (Resource $resource, $time_ranges=[], $closed_status=null, $excluded_request_ids=[], $additional_conditions='', $additional_parameters=[])
 
static countByResourceAndTimeRanges (Resource $resource, $time_ranges=[], $closed_status=null, $excluded_request_ids=[], $additional_conditions='', $additional_parameters=[])
 
static findByCourse ($course_id)
 
static findByDate ($date_id)
 
static findByMetadate ($metadate_id)
 
static existsByCourse ($course_id, $request_is_open=false)
 
static existsByDate ($date_id, $request_is_open=false)
 
static existsByMetadate ($metadate_id, $request_is_open=false)
 
- Static Public Member Functions inherited from SimpleORMap
static tableScheme ($db_table)
 
static expireTableScheme ()
 
static exists ($id)
 
static countBySql ($sql='1', $params=[])
 
static create ($data)
 
static build ($data, $is_new=true)
 
static buildExisting ($data)
 
static import ($data)
 
static findBySQL ($sql, $params=[])
 
static findOneBySQL ($where, $params=[])
 
static findThru ($foreign_key_value, $options)
 
static findEachBySQL ($callable, $sql, $params=[])
 
static findMany ($pks=[], $order='', $order_params=[])
 
static findEachMany ($callable, $pks=[], $order='', $order_params=[])
 
static findAndMapBySQL ($callable, $where, $params=[])
 
static findAndMapMany ($callable, $pks=[], $order='', $order_params=[])
 
static deleteBySQL ($where, $params=[])
 
static toObject ($id_or_object)
 
static __callStatic (string $name, array $arguments)
 
- Static Public Member Functions inherited from PrivacyObject
static exportUserData (StoredUserData $storage)
 
- Data Fields inherited from ResourceRequest
const MARK_NONE = 0
 
const MARK_RED = 1
 
const MARK_YELLOW = 2
 
const MARK_GREEN = 3
 
const REPLY_REQUESTER = 'requester'
 
const REPLY_LECTURER = 'lecturer'
 
const STATE_OPEN = 0
 
const STATE_PENDING = 1
 
const STATE_CLOSED = 2
 
const STATE_DECLINED = 3
 
const MARKING_STATES = 4
 
- Data Fields inherited from SimpleORMap
const ID_SEPARATOR = '_'
 
- Static Public Attributes inherited from SimpleORMap
static $schemes = null
 
- Protected Member Functions inherited from ResourceRequest
 convertToEventData (array $time_intervals, User $user)
 
- Protected Member Functions inherited from SimpleORMap
 _getId ($field)
 
 _setId ($field, $value)
 
 _getAdditionalValueFromRelation ($field)
 
 _setAdditionalValueFromRelation ($field, $value)
 
 _getAdditionalValue ($field)
 
 _setAdditionalValue ($field, $value)
 
 parseRelationOptions ($type, $name, $options)
 
 storeRelations ($only_these=null)
 
 deleteRelations ()
 
 initializeContent ()
 
 applyCallbacks ($type)
 
 cbNotificationMapper ($cb_type)
 
 cbAfterInitialize ($cb_type)
 
 setSerializedValue ($field, $value)
 
 setI18nValue ($field, $value)
 
- Protected Attributes inherited from SimpleORMap
 $content = []
 
 $content_db = []
 
 $is_new = true
 
 $is_deleted = false
 
 $relations = []
 
 $additional_data = []
 
- Static Protected Attributes inherited from SimpleORMap
static $config = []
 
static $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id']
 
static $performs_batch_operation = false
 

Member Function Documentation

◆ checkOpen()

checkOpen (   $also_change = false)

◆ configure()

static configure (   $config = [])
staticprotected

The documentation for this class was generated from the following file: