Stud.IP  trunk Revision
RoomRequest Class Reference
Inheritance diagram for RoomRequest:
Inheritance graph
Collaboration diagram for RoomRequest:
Collaboration graph

Public Member Functions

 getResourceId ()
 
 getSeminarId ()
 
 getTerminId ()
 
 getMetadateId ()
 
 getUserId ()
 
 getCategoryId ()
 
 getComment ()
 
 getReplyComment ()
 
 getClosed ()
 
 getPropertyState ($property_id)
 
 getProperties ()
 
 getAvailableProperties ()
 
 getSettedPropertiesCount ()
 
 getSeats ()
 
 setResourceId ($value)
 
 setUserId ($value)
 
 setSeminarId ($value)
 
 setCategoryId ($value)
 
 setComment ($value)
 
 setReplyComment ($value)
 
 setClosed ($value)
 
 setTerminId ($value)
 
 setMetadateId ($value)
 
 setPropertyState ($property_id, $value)
 
 setDefaultSeats ($value)
 
 searchRoomsToRequest ($search_exp, $properties=false)
 
 searchRooms ($search_exp, $properties=FALSE, $limit_lower=0, $limit_upper=0, $only_rooms=TRUE, $permitted_resources=FALSE)
 
 cbInitProperties ()
 
 checkOpen ($also_change=FALSE)
 
 copy ()
 
 store ()
 
 delete ()
 
 toArray ($only_these_fields=NULL)
 
 getType ()
 
 getStatus ()
 
 getInfo ()
 
 getTypeExplained ()
 
 getStatusExplained ()
 
 getUserStatus ($user_id)
 
 setUserStatus ($user_id, $status=true)
 
 getAffectedDates ()
 
- 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)
 
 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 ()
 

Static Public Member Functions

static findByCourse ($seminar_id)
 
static findByDate ($termin_id)
 
static findByCycle ($metadate_id)
 
static existsByCourse ($seminar_id, $is_open=false)
 
static existsByDate ($termin_id, $is_open=false)
 
static existsByCycle ($metadate_id, $is_open=false)
 
static existsForSQL ($where)
 
- Static Public Member Functions inherited from SimpleORMap
static tableScheme ($db_table)
 
static expireTableScheme ()
 
static find ($id)
 
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 ($name, $arguments)
 

Data Fields

 $last_search_result_count
 
- Data Fields inherited from SimpleORMap
const ID_SEPARATOR = '_'
 

Static Protected Member Functions

static configure ($config=[])
 
- Static Protected Member Functions inherited from SimpleORMap
static configure ($config=[])
 
static config ($key)
 

Additional Inherited Members

- Static Public Attributes inherited from SimpleORMap
static $schemes = null
 
- 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)
 
 registerCallback ($types, $cb)
 
 unregisterCallback ($types, $cb)
 
 cbAutoIncrementColumn ($type)
 
 cbAutoKeyCreation ()
 
 cbNotificationMapper ($cb_type)
 
 cbAfterInitialize ($cb_type)
 
 setSerializedValue ($field, $value)
 
 setI18nValue ($field, $value)
 
 cbI18N ($type)
 
- Protected Attributes inherited from SimpleORMap
 $content = []
 
 $content_db = []
 
 $is_new = true
 
 $is_deleted = false
 
 $db_table = ''
 
 $db_fields = null
 
 $pk = null
 
 $default_values = []
 
 $serialized_fields = []
 
 $alias_fields = []
 
 $i18n_fields = []
 
 $additional_fields = []
 
 $relations = []
 
 $has_many = []
 
 $has_one = []
 
 $belongs_to = []
 
 $has_and_belongs_to_many = []
 
 $registered_callbacks = []
 
 $known_slots = []
 
 $notification_map = []
 
 $additional_data = []
 
 $getter_setter_map = []
 
- Static Protected Attributes inherited from SimpleORMap
static $config = []
 
static $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id']
 

Member Function Documentation

◆ cbInitProperties()

cbInitProperties ( )
Here is the call graph for this function:

◆ checkOpen()

checkOpen (   $also_change = FALSE)
Here is the call graph for this function:

◆ configure()

static configure (   $config = [])
staticprotected

set configuration data from subclass

Parameters
array$configconfiguration data
Returns
void

Reimplemented from SimpleORMap.

◆ copy()

copy ( )
Here is the call graph for this function:

◆ delete()

delete ( )

delete entry from database the object is cleared, but is not(!) turned to new state

Returns
int number of deleted rows

Reimplemented from SimpleORMap.

Here is the call graph for this function:

◆ existsByCourse()

static existsByCourse (   $seminar_id,
  $is_open = false 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ existsByCycle()

static existsByCycle (   $metadate_id,
  $is_open = false 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ existsByDate()

static existsByDate (   $termin_id,
  $is_open = false 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ existsForSQL()

static existsForSQL (   $where)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findByCourse()

static findByCourse (   $seminar_id)
static

◆ findByCycle()

static findByCycle (   $metadate_id)
static

◆ findByDate()

static findByDate (   $termin_id)
static
Here is the caller graph for this function:

◆ getAffectedDates()

getAffectedDates ( )
Here is the call graph for this function:

◆ getAvailableProperties()

getAvailableProperties ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCategoryId()

getCategoryId ( )

◆ getClosed()

getClosed ( )
Here is the caller graph for this function:

◆ getComment()

getComment ( )
Here is the caller graph for this function:

◆ getInfo()

getInfo ( )
Here is the call graph for this function:

◆ getMetadateId()

getMetadateId ( )

◆ getProperties()

getProperties ( )
Here is the caller graph for this function:

◆ getPropertyState()

getPropertyState (   $property_id)
Here is the caller graph for this function:

◆ getReplyComment()

getReplyComment ( )
Here is the caller graph for this function:

◆ getResourceId()

getResourceId ( )
Here is the caller graph for this function:

◆ getSeats()

getSeats ( )
Here is the call graph for this function:

◆ getSeminarId()

getSeminarId ( )

◆ getSettedPropertiesCount()

getSettedPropertiesCount ( )
Here is the caller graph for this function:

◆ getStatus()

getStatus ( )
Here is the call graph for this function:

◆ getStatusExplained()

getStatusExplained ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTerminId()

getTerminId ( )

◆ getType()

getType ( )
Here is the caller graph for this function:

◆ getTypeExplained()

getTypeExplained ( )
Here is the call graph for this function:

◆ getUserId()

getUserId ( )

◆ getUserStatus()

getUserStatus (   $user_id)
Here is the call graph for this function:

◆ searchRooms()

searchRooms (   $search_exp,
  $properties = FALSE,
  $limit_lower = 0,
  $limit_upper = 0,
  $only_rooms = TRUE,
  $permitted_resources = FALSE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ searchRoomsToRequest()

searchRoomsToRequest (   $search_exp,
  $properties = false 
)
Here is the call graph for this function:

◆ setCategoryId()

setCategoryId (   $value)
Here is the call graph for this function:

◆ setClosed()

setClosed (   $value)

this function changes the state of the room-request

possible states are: 0 - room-request is open 1 - room-request has been edited, but no confirmation has been sent 2 - room-request has been edited and a confirmation has been sent 3 - room-request has been declined

Parameters
integer$valueone of the states
Here is the caller graph for this function:

◆ setComment()

setComment (   $value)

◆ setDefaultSeats()

setDefaultSeats (   $value)

◆ setMetadateId()

setMetadateId (   $value)

◆ setPropertyState()

setPropertyState (   $property_id,
  $value 
)

◆ setReplyComment()

setReplyComment (   $value)

◆ setResourceId()

setResourceId (   $value)

◆ setSeminarId()

setSeminarId (   $value)

◆ setTerminId()

setTerminId (   $value)

◆ setUserId()

setUserId (   $value)

◆ setUserStatus()

setUserStatus (   $user_id,
  $status = true 
)
Here is the call graph for this function:

◆ store()

store ( )

store entry in database

Exceptions
UnexpectedValueExceptionif there are forbidden NULL values
Returns
number|boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toArray()

toArray (   $only_these_fields = NULL)

returns data of table row as assoc array pass array of fieldnames or ws separated string to limit fields

Parameters
mixed$only_these_fieldslimit returned fields
Returns
array

Reimplemented from SimpleORMap.

Here is the call graph for this function:

Field Documentation

◆ $last_search_result_count

$last_search_result_count

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