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

Public Member Functions

 before_filter (&$action, &$args)
 
 index_action ()
 
 edit_action ($id=null)
 
 delete_action ($id)
 
 lock_action ($id)
 
 unlock_action ($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

 validateSemester (Semester $semester)
 
 getTimeStamp ($name, $time= '0:00:00')
 
 setSidebar ()
 
- 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$actionAction that has been called
Array$argsList of arguments
delete_action (   $id)

This method deletes a semester or a bundle of semesters.

Parameters
string$idId of the semester (or 'bulk' for a bulk operation)
edit_action (   $id = null)

This method edits an existing semester or creates a new semester.

Parameters
mixed$idId of the semester or null to create a semester.
getTimeStamp (   $name,
  $time = '0:00:00' 
)
protected

Checks a string if it is a valid date and returns the according unix timestamp if valid.

Parameters
string$nameParameter name to extract from request
string$timeOptional time segment
Returns
mixed Unix timestamp or false if not valid
index_action ( )

Display all informations about the semesters

lock_action (   $id)

This method locks a semester or a bundle of semesters.

Parameters
string$idId of the semester (or 'bulk' for a bulk operation)
setSidebar ( )
protected

Adds the content to sidebar

unlock_action (   $id)

This method unlocks a semester or a bundle of semesters.

Parameters
string$idId of the semester (or 'bulk' for a bulk operation)
validateSemester ( Semester  $semester)
protected

Validates the semester for required valies, properness of values and possible overlaps with other semesters.

The validation is also divided into these three steps, so the next validation step only occurs when the previous one succeeded.

Parameters
Semester$semesterSemester (data) to validate
Returns
Array filled with errors

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