Member Function Documentation
| __call |
( |
|
$method, |
|
|
|
$arguments |
|
) |
| |
Enables methods like reportError, reportInfo or reportSuccess as a shortcut to post messages to the layout.
- Parameters
-
| String | $method | Name of the called method |
| Array | $arguments | Arguments passed to the method |
- Returns
- Object Returns $this to allow chaining
- Exceptions
-
| BadMethodCallException | when an unhandled method was called |
| after_filter |
( |
|
$action, |
|
|
|
$args |
|
) |
| |
The after filter handles the sending of private messages via email, if present. Also, if an action requires the user to be logged out, this is accomplished here.
- Parameters
-
| String | $action | Name of the action that has been invoked |
| Array | $args | Arguments of the action |
Reimplemented from AuthenticatedController.
| before_filter |
( |
& |
$action, |
|
|
& |
$args |
|
) |
| |
Sets up the controller
- Parameters
-
| String | $action | Which action shall be invoked |
| Array | $args | Arguments passed to the action method |
Reimplemented from AuthenticatedController.
Reimplemented in Settings_NotificationController, Settings_DetailsController, Settings_PasswordController, Settings_CalendarController, Settings_AccountController, Settings_AvatarController, Settings_CategoriesController, Settings_DeputiesController, Settings_GeneralController, Settings_PrivacyController, Settings_StatusgruppenController, Settings_StudiesController, Settings_UserdomainsController, and Settings_MessagingController.
Generic ticket check
- Exceptions
-
| get_default_template |
( |
|
$action | ) |
|
Gets the default template for an action.
- Parameters
-
| String | $action | Which action was invoked |
- Returns
- String File name of the template
| postPrivateMessage |
( |
|
$message | ) |
|
|
protected |
Add to the private messages
- Parameters
-
| String | $message | Message to store |
- Returns
- Object Returns $this to allow chaining
| render_nothing |
( |
|
$text = '' | ) |
|
Render nothing but with a layout
- Parameters
-
| String | $text | Optional nothing text |
- Returns
- String Rendered output
| shallChange |
( |
|
$field, |
|
|
|
$attribute = null, |
|
|
|
$value = null |
|
) |
| |
Determines whether a user is permitted to change a certain value and if provided, whether the value has actually changed.
- Parameters
-
| String | $field | Which db field shall change |
| mixed | $attribute | Which attribute is related (optional, automatically guessedif missing) |
| mixed | $value | Optional new value of the field (used to determine whether the value has actually changed) |
- Returns
- bool Indicates whether the value shall actually change
Adjust url_for so it imitates the parameters behaviour of URLHelper. This way you can add parameters by adding an associative array as last argument.
- Parameters
-
| mixed | $to | Path segments of the url (String) or url parameters (Array) |
- Returns
- String Generated url
Reimplemented from StudipController.
| verifyDialog |
( |
|
$message, |
|
|
|
$approved, |
|
|
|
$rejected |
|
) |
| |
Generic verififcation dialog
- Parameters
-
| String | $message | Message to be displayed to the user |
| mixed | $approved | Arguments to pass to url_for if the user approves the question |
| mixed | $rejected | Arguments to pass to url_for if the user disapproves the question |
- Returns
- String Rendered output of the verification dialog.
Field Documentation
| $private_messages = array() |
|
protected |
The documentation for this class was generated from the following file: