Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
StudipController Class Reference
Inheritance diagram for StudipController:
Inheritance graph
Collaboration diagram for StudipController:
Collaboration graph

Public Member Functions

 before_filter (&$action, &$args)
 validate_args (&$args, $types=NULL)
 url_for ($to= '')
 link_for ($to= '')
 rescue ($exception)
 setInfoBoxImage ($image)
 addToInfobox ($category, $text, $icon= 'blank.gif')
 render_json ($data)
 relay ($to_uri)
 perform_relayed ($unconsumed)
 render_template_as_string ($template, $layout=null)

Protected Member Functions

 populateInfobox ()

Member Function Documentation

addToInfobox (   $category,
  $text,
  $icon = 'blank.gif' 
)

Adds an item to a certain category section of the infobox. Categories are created in the order this method is invoked. Multiple occurences of a category will add items to the category.

Parameters
String$categoryThe item's category title used as the header above displayed category - write spoken not tech language ^^
String$textThe content of the item, may contain html
String$iconIcon to display in front the item, path is relative to :assets:/images
Since
Stud.IP 2.3

Here is the call graph for this function:

Here is the caller graph for this function:

before_filter ( $action,
$args 
)

Reimplemented in Course_ScmController, Document_DownloadController, Admin_Cronjobs_SchedulesController, Admin_Cronjobs_LogsController, Admin_Cronjobs_TasksController, Calendar_ScheduleController, Document_FilesController, ScoreController, Admin_DatafieldsController, ProfileModulesController, Course_StudygroupController, Admin_AutoinsertController, MyCoursesController, NewsController, ElearningController, Admin_CoursesController, AuthenticatedController, ProfileController, Admin_ConfigurationController, Admin_StudycourseController, Admin_UserController, Course_EnrolmentController, JsupdaterController, LiteratureController, Settings_NotificationController, TourController, Course_MembersController, Settings_SettingsController, SmileysController, Admin_SpecificationController, Course_ElearningController, Course_LiteratureController, Settings_DetailsController, Settings_PasswordController, Admission_CoursesetController, Course_ChangeViewController, Document_FolderController, Settings_CalendarController, Admin_DomainController, Admin_PluginController, OnlineController, PublicCoursesController, Resources_HelpersController, Settings_AccountController, Settings_AvatarController, Settings_CategoriesController, Settings_DeputiesController, Settings_GeneralController, Settings_PrivacyController, Settings_StatusgruppenController, Settings_UserdomainsController, StartController, Admin_SmileysController, Admission_RuleAdministrationController, Course_StudyAreasController, EventLogController, Settings_StudiesController, SiteinfoController, Admin_RoleController, Admin_SemesterController, Admission_RuleController, Admission_UserListController, Course_DetailsController, Course_RoomRequestsController, Userfilter_FieldController, Userfilter_FilterController, Admin_AdditionalController, Admin_LockrulesController, Admin_WebserviceAccessController, Admission_RestrictedCoursesController, Course_AdmissionController, Course_AvatarController, Course_CancelDatesController, Course_ManagementController, Course_OverviewController, Institute_AvatarController, Institute_MembersController, Admin_BannerController, Course_BlockAppointmentsController, StudygroupController, Admin_StatusgroupsController, PluginController, TermineController, iCalController, Institute_OverviewController, MessagesController, Settings_MessagingController, Document_ClosedController, Search_CoursesController, BbController, Document_AdministrationController, Admin_SemClassesController, Api_AuthorizationsController, Api_OauthController, Admin_ApiController, ContentElementController, Course_DatesController, DocumentController, Course_TopicsController, MyInstitutesController, MyStudygroupsController, Admin_DbIntegrityCheckController, and FolderController.

Here is the call graph for this function:

link_for (   $to = '')

Returns an escaped URL to a specified route to your Trails application. without first parameter the current action is used if route begins with a / then the current controller ist prepended if second parameter is an array it is passed to URLHeper

Parameters
stringa string containing a controller and optionally an action
stringsoptional arguments
Returns
string a URL to this route

Here is the call graph for this function:

Here is the caller graph for this function:

perform_relayed (   $unconsumed)

perform a given action/parameter string from an relayed request before_filter and after_filter methods are not called

See Also
perform
Parameters
string$unconsumed
Returns
Trails_Response
populateInfobox ( )
protected

Spawns a new infobox variable on this object, if neccessary.

Since
Stud.IP 2.3

Reimplemented in Settings_SettingsController.

Here is the caller graph for this function:

relay (   $to_uri)

relays current request to another controller and returns the response the other controller is given all assigned properties, additional parameters are passed through

Parameters
string$to_uria trails route
Returns
Trails_Response

Here is the caller graph for this function:

render_json (   $data)

render given data as json, data is converted to utf-8

Parameters
unknown$data

Reimplemented in Course_RoomRequestsController, Course_BlockAppointmentsController, and ContentElementController.

Here is the call graph for this function:

Here is the caller graph for this function:

render_template_as_string (   $template,
  $layout = null 
)

Here is the caller graph for this function:

rescue (   $exception)

Exception handler called when the performance of an action raises an exception.

Parameters
objectthe thrown exception
setInfoBoxImage (   $image)

Sets the header image for the infobox.

Parameters
String$imageImage to display, path is relative to :assets:/images
Since
Stud.IP 2.3

Here is the call graph for this function:

url_for (   $to = '')

Returns a URL to a specified route to your Trails application. without first parameter the current action is used if route begins with a / then the current controller ist prepended if second parameter is an array it is passed to URLHeper

Parameters
stringa string containing a controller and optionally an action
stringsoptional arguments
Returns
string a URL to this route

Reimplemented in Settings_SettingsController, and Admin_DbIntegrityCheckController.

Here is the call graph for this function:

Here is the caller graph for this function:

validate_args ( $args,
  $types = NULL 
)

Validate arguments based on a list of given types. The types are: 'int', 'float', 'option' and 'string'. If the list of types is NULL or shorter than the argument list, 'option' is assumed for all remaining arguments. 'option' differs from Request::option() in that it also accepts the charaters '-' and ',' in addition to all word charaters.

Parameters
arrayan array of arguments to the action
arraylist of argument types (optional)

Here is the caller graph for this function:


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