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

Public Member Functions

 update_action ($type, $id)
 
 upload_action ($type, $id)
 
 delete_action ($type, $id)
 
- 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)
 

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

◆ delete_action()

delete_action (   $type,
  $id 
)

Deletes a custom avatar.

Parameters
string$typeobject type: 'user', 'course' or 'institute'
string$idID of the object this avatar belongs to
Here is the call graph for this function:

◆ update_action()

update_action (   $type,
  $id 
)

Display the avatar information of a user, course or institute

Parameters
string$typeobject type: 'user', 'course' or 'institute'
string$idID of the object this avatar belongs to
Here is the call graph for this function:

◆ upload_action()

upload_action (   $type,
  $id 
)

Upload a new avatar or removes the current avatar. Sends an information email to the user if the action was not invoked by himself.

Parameters
string$typeobject type: 'user', 'course' or 'institute'
string$idID of the object this avatar belongs to
Here is the call graph for this function:

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