Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
Course_RoomRequestsController Class Reference
Inheritance diagram for Course_RoomRequestsController:
AuthenticatedController StudipController

Public Member Functions

 before_filter (&$action, &$args)
 
 index_action ()
 
 info_action ($request_id)
 
 new_action ()
 
 request_start_action ($request_id= '')
 
 request_select_properties_action ($request_id= '')
 
 request_select_room_action ($request_id)
 
 request_summary_action ($request_id=null)
 
 request_store_action ()
 
 delete_action ($request_id)
 
- Public Member Functions inherited from StudipController
 before_filter (&$action, &$args)
 
 erase_response ()
 
 perform ($unconsumed_path)
 
 after_filter ($action, $args)
 
 validate_args (&$args, $types=null)
 
 url_for ($to= '')
 
 link_for ($to= '')
 
 redirect ($to)
 
 relocate ($to)
 
 rescue ($exception)
 
 render_json ($data)
 
 render_csv ($data, $filename=null, $delimiter= ';', $enclosure= '"')
 
 render_file ($file, $filename=null, $content_type=null, $content_disposition= 'attachment', Closure $callback=null, $chunk_size=262144)
 
 render_temporary_file ($file, $filename=null, $content_type=null, $content_disposition= 'attachment', Closure $callback=null, $chunk_size=262144)
 
 relay ($to_uri)
 
 relayWithRedirect (...$args)
 
 perform_relayed ($unconsumed)
 
 render_template_as_string ($template, $layout=null)
 
 __call ($method, $arguments)
 
 has_action ($action)
 
 action_url ($action)
 
 action_link ($action)
 
 validate_datetime ($datetime, $format= 'H:i')
 

Protected Member Functions

getRequestSessionData ($request_id=null)
 
 getRequestInstanceFromSession ($request_id)
 
 loadData ($session_data, $step=1)
 
- Protected Member Functions inherited from StudipController
 render_pdf (TCPDF $pdf, $filename, $inline=false)
 
 controller_path ()
 
 getBodyElementIdForControllerAndAction ($unconsumed_path)
 

Additional Inherited Members

- Protected Attributes inherited from AuthenticatedController
 $with_session = true
 
 $allow_nobody = false
 
- Protected Attributes inherited from StudipController
 $with_session = false
 
 $allow_nobody = true
 
 $_autobind = false
 

Member Function Documentation

before_filter ( $action,
$args 
)

Common tasks for all actions

Parameters
string$actionCalled action
array$argsPossible arguments
delete_action (   $request_id)

delete one room request

getRequestInstanceFromSession (   $request_id)
protected

Returns a request instance that gets all its data set from the session. This is useful if a new request is being created.

& getRequestSessionData (   $request_id = null)
protected

Returns a reference to the session data array for the specified request-ID.

index_action ( )

Display the list of room requests

info_action (   $request_id)

Show information about a request

Parameters
String$request_idId of the request
loadData (   $session_data,
  $step = 1 
)
protected

This method loads data for the request editing actions. Depending on the editing step, more or less data have to be loaded.

Parameters
array$session_dataRequest data stored in the session.
int$stepThe editing step: 1 = request_start 2 = request_select_properties 3 = request_select_room 4 = request_overview
new_action ( )

create a new room request

request_select_properties_action (   $request_id = '')

This action is called from request_start in the case that a resource category has been selected.

request_select_room_action (   $request_id)

This action is called either directly from request_start (in case a room name is set but no resource category) or after selecting properties in request_select_properties. It searches for rooms depending on the selected properties or the selected name.

request_start_action (   $request_id = '')

This action is the entry point for adding properties to a room request.

request_store_action ( )

Stores the request. This is called from request_summary, request_select_room and request_select_properties after the user clicked on "save" or "save and close".

request_summary_action (   $request_id = null)

This action is either called from request_select_room after a room has been selected, from request_select_properties after properties have been selected or when an existing request shall be edited.


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