◆ 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 | $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
- Deprecated:
- since Stud.IP 3.1 in favor of the sidebar
◆ after_filter()
| after_filter |
( |
|
$action, |
|
|
|
$args |
|
) |
| |
Callback function being called after an action is executed.
- Parameters
-
| string | Name of the action to perform. |
| array | An array of arguments to the action. |
- Returns
- void
◆ before_filter()
| before_filter |
( |
& |
$action, |
|
|
& |
$args |
|
) |
| |
◆ link_for()
Returns an escaped URL to a specified route to your Trails application. without first parameter the current action is used if route begins with a / then the current controller ist prepended if second parameter is an array it is passed to URLHeper
- Parameters
-
| string | a string containing a controller and optionally an action |
| strings | optional arguments |
- Returns
- string a URL to this route
◆ perform()
| perform |
( |
|
$unconsumed_path | ) |
|
Hooked perform method in order to inject body element id creation.
In order to avoid clashes, these body element id will be joined with a minus sign. Otherwise the controller "x" with action "y_z" would be given the same id as the controller "x/y" with the action "z", namely "x_y_z". With the minus sign this will result in the ids "x-y_z" and "x_y-z".
Plugins will always have a leading 'plugin-' and the decamelized plugin name in front of the id.
- Parameters
-
| String | $unconsumed_path | Path segment containing action and optionally arguments or format |
- Returns
- Trails_Response from parent controller
◆ perform_relayed()
| perform_relayed |
( |
|
$unconsumed | ) |
|
perform a given action/parameter string from an relayed request before_filter and after_filter methods are not called
- See also
- perform
- Parameters
-
- Returns
- Trails_Response
◆ populateInfobox()
Spawns a new infobox variable on this object, if neccessary.
- Since
- Stud.IP 2.3
- Deprecated:
- since Stud.IP 3.1 in favor of the sidebar
◆ relay()
relays current request to another controller and returns the response the other controller is given all assigned properties, additional parameters are passed through
- Parameters
-
| string | $to_uri | a trails route |
- Returns
- Trails_Response
◆ relocate()
Relocate the user to another location. This is a specialized version of redirect that differs in two points:
- relocate() will force the browser to leave the current dialog while redirect would refresh the dialog's contents
- relocate() accepts all the parameters that url_for() accepts so it's no longer neccessary to chain url_for() and redirect()
- Parameters
-
| String | $to | Location to redirect to |
◆ render_json()
render given data as json, data is converted to utf-8
- Parameters
-
◆ render_template_as_string()
| render_template_as_string |
( |
|
$template, |
|
|
|
$layout = null |
|
) |
| |
Renders a given template and returns the resulting string.
- Parameters
-
| string | $template | Name of the template file |
| mixed | $layout | Optional layout |
- Returns
- string
◆ rescue()
Exception handler called when the performance of an action raises an exception.
- Parameters
-
| object | the thrown exception |
◆ setInfoBoxImage()
| 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
- Deprecated:
- since Stud.IP 3.1 in favor of the sidebar
◆ url_for()
Returns a URL to a specified route to your Trails application. without first parameter the current action is used if route begins with a / then the current controller ist prepended if second parameter is an array it is passed to URLHeper
- Parameters
-
| string | a string containing a controller and optionally an action |
| strings | optional arguments |
- Returns
- string a URL to this route
◆ 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
-
| array | an array of arguments to the action |
| array | list of argument types (optional) |
◆ $allow_nobody
◆ $encoding
| $encoding = "windows-1252" |
|
protected |
◆ $utf8decode_xhr
◆ $with_session
The documentation for this class was generated from the following file: