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

Public Member Functions

 before_filter (&$action, &$args)
 
 index_action ($view=null)
 
 favor_action ($id, $view)
 
 picker_action ($view=null, $page=0)
 
- 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)
 

Data Fields

const GRID_WIDTH = 5
 
const GRID_HEIGHT = 2
 

Additional Inherited Members

- 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

◆ before_filter()

before_filter ( $action,
$args 
)

Common tasks for all actions.

Here is the call graph for this function:

◆ favor_action()

favor_action (   $id,
  $view 
)

Toggles whether a certain smiley is favored for the current user

Parameters
int$idId of the smiley to favor/disfavor
String$viewView to return to
Here is the call graph for this function:

◆ index_action()

index_action (   $view = null)

Displays (a subset of) the smileys in the system

Parameters
mixed$viewSubset to display, defaults to favorites if enabled
Here is the call graph for this function:

◆ picker_action()

picker_action (   $view = null,
  $page = 0 
)

Back end for the smiley picker javascript module. Renders a list of smileys very similar to the index action but unfortunately still to different to be combined.

Parameters
mixed$viewSubset to display, defaults to favorites if enabled
int$pageSection of subset to display
Here is the call graph for this function:

Field Documentation

◆ GRID_HEIGHT

const GRID_HEIGHT = 2

◆ GRID_WIDTH

const GRID_WIDTH = 5

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