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

Public Member Functions

 validate_args (&$args, $types=NULL)
 url_for ($to)
 rescue ($exception)
 setInfoBoxImage ($image)
 addToInfobox ($category, $text, $icon= 'blank.gif')

Protected Member Functions

 populateInfobox ()

Member Function Documentation

addToInfobox (   $category,
  $text,
  $icon = 'blank.gif' 
)

Adds an item to a certain category section of the infobox. Categories are created in the order this method is invoked. Multiple occurences of a category will add items to the category.

Parameters
String$categoryThe item's category title used as the header above displayed category - write spoken not tech language ^^
String$textThe content of the item, may contain html
String$iconIcon to display in front the item, path is relative to :assets:/images
Since
Stud.IP 2.3

Here is the call graph for this function:

Here is the caller graph for this function:

populateInfobox ( )
protected

Spawns a new infobox variable on this object, if neccessary.

Since
Stud.IP 2.3

Reimplemented in Settings_SettingsController.

Here is the caller graph for this function:

rescue (   $exception)

Exception handler called when the performance of an action raises an exception.

Parameters
objectthe thrown exception
setInfoBoxImage (   $image)

Sets the header image for the infobox.

Parameters
String$imageImage to display, path is relative to :assets:/images
Since
Stud.IP 2.3

Here is the call graph for this function:

Here is the caller graph for this function:

url_for (   $to)

Returns a URL to a specified route to your Trails application.

Parameters
stringa string containing a controller and optionally an action
stringsoptional arguments
Returns
string a URL to this route

Reimplemented in Settings_SettingsController, and Admin_DbIntegrityCheckController.

Here is the call graph for this function:

Here is the caller graph for this function:

validate_args ( $args,
  $types = NULL 
)

Validate arguments based on a list of given types. The types are: 'int', 'float', 'option' and 'string'. If the list of types is NULL or shorter than the argument list, 'option' is assumed for all remaining arguments. 'option' differs from Request::option() in that it also accepts the charaters '-' and ',' in addition to all word charaters.

Parameters
arrayan array of arguments to the action
arraylist of argument types (optional)

Here is the caller graph for this function:


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