Stud.IP  2.5 Revision
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()

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()

populateInfobox ( )
protected

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

Since
Stud.IP 2.3
Here is the caller graph for this function:

◆ rescue()

rescue (   $exception)

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

Parameters
objectthe thrown exception

◆ setInfoBoxImage()

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()

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_args()

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: