Stud.IP  2.3 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
RoomRequest Class Reference
Inheritance diagram for RoomRequest:
Inheritance graph
Collaboration diagram for RoomRequest:
Collaboration graph

Public Member Functions

 __construct ($id=null)
 getResourceId ()
 getSeminarId ()
 getTerminId ()
 getMetadateId ()
 getUserId ()
 getCategoryId ()
 getComment ()
 getReplyComment ()
 getClosed ()
 getPropertyState ($property_id)
 getProperties ()
 getAvailableProperties ()
 getSettedPropertiesCount ()
 getSeats ()
 setResourceId ($value)
 setUserId ($value)
 setSeminarId ($value)
 setCategoryId ($value)
 setValue ($field, $value)
 getValue ($field)
 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)
 restore ()
 checkOpen ($also_change=FALSE)
 copy ()
 store ()
 delete ()
 toArray ()
 getType ()
 getStatus ()
 getInfo ()
 getTypeExplained ()
 getStatusExplained ()
- Public Member Functions inherited from SimpleORMap
 getTableMetadata ()
 setId ($id)
 getId ()
 getNewId ()
 getData ()
 __get ($field)
 __set ($field, $value)
 __isset ($field)
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)
 getIterator ()
 count ()
 isField ($field)
 setData ($data, $reset=false)
 haveData ()
 isNew ()
 setNew ($is_new)
 getWhereQuery ()
 triggerChdate ()
 isDirty ()
 isFieldDirty ($field)
 revertValue ($field)

Static Public Member Functions

static find ($id)
static findBySql ($where)
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 expireTableScheme ()
static find ($class, $id)
static findBySQL ($class, $where)
static deleteBySQL ($class, $where)
static toObject ($class, $id_or_object)

Data Fields

 $last_search_result_count

Additional Inherited Members

- Protected Member Functions inherited from SimpleORMap
 getTableScheme ()
 initializeContent ()
- Static Protected Member Functions inherited from SimpleORMap
static TableScheme ($db_table)
- Protected Attributes inherited from SimpleORMap
 $content = array()
 $content_db = array()
 $is_new = true
 $db_table = ''
 $db_fields = null
 $pk = null
 $default_values = array()
- Static Protected Attributes inherited from SimpleORMap
static $schemes

Detailed Description

RoomRequest, class for room-requests and room-property-requests

Constructor & Destructor Documentation

__construct (   $id = null)
Parameters
string$idprimary key of table

Reimplemented from SimpleORMap.

Member Function Documentation

checkOpen (   $also_change = FALSE)

Here is the call graph for this function:

copy ( )

Here is the call graph for this function:

delete ( )

delete entry from database the object is cleared and turned to new state

Returns
boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

Here is the caller graph for this function:

static existsByCourse (   $seminar_id,
  $is_open = false 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static existsByCycle (   $metadate_id,
  $is_open = false 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static existsByDate (   $termin_id,
  $is_open = false 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static existsForSQL (   $where)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static find (   $id)
static

returns new instance for given key when found in db, else null

Parameters
string$id
Returns
NULL|RoomRequest

Here is the caller graph for this function:

static findByCourse (   $seminar_id)
static
static findByCycle (   $metadate_id)
static
static findByDate (   $termin_id)
static

Here is the caller graph for this function:

static findBySql (   $where)
static

returns array of instances of RommRequest filtered by given sql where-clause

Parameters
stringwhere: clause to use on the right side of WHERE
Returns
array of instances of SeminarCycleDates filtered by given sql where-clause or an empty array if nothing matches the clause
getAvailableProperties ( )

Here is the call graph for this function:

Here is the caller graph for this function:

getCategoryId ( )
getClosed ( )

Here is the caller graph for this function:

getComment ( )

Here is the caller graph for this function:

getInfo ( )

Here is the call graph for this function:

getMetadateId ( )
getProperties ( )

Here is the caller graph for this function:

getPropertyState (   $property_id)

Here is the caller graph for this function:

getReplyComment ( )

Here is the caller graph for this function:

getResourceId ( )

Here is the caller graph for this function:

getSeats ( )

Here is the call graph for this function:

getSeminarId ( )
getSettedPropertiesCount ( )

Here is the caller graph for this function:

getStatus ( )

Here is the call graph for this function:

getStatusExplained ( )

Here is the call graph for this function:

Here is the caller graph for this function:

getTerminId ( )
getType ( )
getTypeExplained ( )

Here is the call graph for this function:

getUserId ( )
getValue (   $field)

returns value of a column

Parameters
string$field
Returns
null|string

Reimplemented from SimpleORMap.

Here is the call graph for this function:

Here is the caller graph for this function:

restore ( )

restore entry from database

Returns
boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

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 (   $search_exp,
  $properties = false 
)

Here is the call graph for this function:

setCategoryId (   $value)
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 (   $value)
setDefaultSeats (   $value)
setMetadateId (   $value)
setPropertyState (   $property_id,
  $value 
)
setReplyComment (   $value)
setResourceId (   $value)
setSeminarId (   $value)
setTerminId (   $value)
setUserId (   $value)
setValue (   $field,
  $value 
)

sets value of a column

Parameters
string$field
string$value
Returns
string

Reimplemented from SimpleORMap.

Here is the call graph for this function:

store ( )

store entry in database if data is actually changed triggerChdate() is called

Returns
number|boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

Here is the caller graph for this function:

toArray ( )

returns data of table row as assoc array

Returns
array

Reimplemented from SimpleORMap.

Here is the call graph for this function:

Field Documentation

$last_search_result_count

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