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 | $category | The item's category title used as the header above displayed category - write spoken not tech language ^^ |
| String | $text | The content of the item, may contain html |
| String | $icon | Icon to display in front the item, path is relative to :assets:/images |
- Since
- Stud.IP 2.3
Exception handler called when the performance of an action raises an exception.
- Parameters
-
| object | the thrown exception |
| setInfoBoxImage |
( |
|
$image | ) |
|
Sets the header image for the infobox.
- Parameters
-
| String | $image | Image to display, path is relative to :assets:/images |
- Since
- Stud.IP 2.3
| 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
-
| array | an array of arguments to the action |
| array | list of argument types (optional) |
The documentation for this class was generated from the following file: