Stud.IP  4.2 Revision
Settings_SettingsController Class Reference
Inheritance diagram for Settings_SettingsController:
Inheritance graph
Collaboration diagram for Settings_SettingsController:
Collaboration graph

Public Member Functions

 before_filter (&$action, &$args)
 
 url_for ($to='')
 
 get_default_template ($action)
 
 render_nothing ($text='')
 
 shallChange ($field, $attribute=null, $value=null)
 
 after_filter ($action, $args)
 
- Public Member Functions inherited from StudipController
 before_filter (&$action, &$args)
 
 perform ($unconsumed_path)
 
 after_filter ($action, $args)
 
 validate_args (&$args, $types=NULL)
 
 url_for ($to='')
 
 link_for ($to='')
 
 relocate ($to)
 
 rescue ($exception)
 
 render_json ($data)
 
 render_csv ($data, $filename=null, $delimiter=';', $enclosure='"')
 
 relay ($to_uri)
 
 perform_relayed ($unconsumed)
 
 render_template_as_string ($template, $layout=null)
 

Protected Member Functions

 check_ticket ()
 
 postPrivateMessage ($message)
 

Protected Attributes

 $private_messages = array()
 
- Protected Attributes inherited from AuthenticatedController
 $with_session = true
 
 $allow_nobody = false
 
- Protected Attributes inherited from StudipController
 $with_session = false
 
 $allow_nobody = true
 

Member Function Documentation

◆ after_filter()

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$actionName of the action that has been invoked
Array$argsArguments of the action
Here is the call graph for this function:

◆ before_filter()

before_filter ( $action,
$args 
)

Sets up the controller

Parameters
String$actionWhich action shall be invoked
Array$argsArguments passed to the action method
Here is the call graph for this function:

◆ check_ticket()

check_ticket ( )
protected

Generic ticket check

Exceptions
AccessDeniedExceptionif ticket is missing or invalid
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_default_template()

get_default_template (   $action)

Gets the default template for an action.

Parameters
String$actionWhich action was invoked
Returns
String File name of the template

◆ postPrivateMessage()

postPrivateMessage (   $message)
protected

Add to the private messages

Parameters
String$messageMessage to store
Returns
Object Returns $this to allow chaining
Here is the caller graph for this function:

◆ render_nothing()

render_nothing (   $text = '')

Render nothing but with a layout

Parameters
String$textOptional nothing text
Returns
String Rendered output
Here is the caller graph for this function:

◆ shallChange()

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$fieldWhich db field shall change
mixed$attributeWhich attribute is related (optional, automatically guessedif missing)
mixed$valueOptional new value of the field (used to determine whether the value has actually changed)
Returns
bool Indicates whether the value shall actually change
Here is the call graph for this function:
Here is the caller graph for this function:

◆ url_for()

url_for (   $to = '')

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$toPath segments of the url (String) or url parameters (Array)
Returns
String Generated url
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ $private_messages

$private_messages = array()
protected

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