Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 AuthenticatedController
 after_filter ($action, $args)
- Public Member Functions inherited from StudipController
 validate_args (&$args, $types=NULL)
 url_for ($to)
 rescue ($exception)
 setInfoBoxImage ($image)
 addToInfobox ($category, $text, $icon= 'blank.gif')

Data Fields

const GRID_WIDTH = 5
const GRID_HEIGHT = 2

Additional Inherited Members

- Protected Member Functions inherited from StudipController
 populateInfobox ()

Member Function Documentation

before_filter ( $action,
$args 
)

Common tasks for all actions.

Reimplemented from AuthenticatedController.

Here is the call graph for this function:

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 (   $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 (   $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

const GRID_HEIGHT = 2
const GRID_WIDTH = 5

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