Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
RController Class Reference
Inheritance diagram for RController:
AssignmentController AuthItemController InstallController

Public Member Functions

 filterAccessControl ($filterChain)
 filterRights ($filterChain)
 allowedActions ()
 accessDenied ($message=null)

Public Attributes

 $layout = '//layouts/column1'
 $menu = array()
 $breadcrumbs = array()

Detailed Description

Rights base controller class file.

Author
Christoffer Niska cnisk.nosp@m.a@li.nosp@m.ve.co.nosp@m.m
Since
0.6

Definition at line 9 of file RController.php.

Member Function Documentation

RController::accessDenied (   $message = null)

Denies the access of the user.

Parameters
string$messagethe message to display to the user. This method may be invoked when access check fails.
Exceptions
CHttpExceptionwhen called unless login is required.

Definition at line 61 of file RController.php.

References Rights\t().

Referenced by InstallController\actionRun().

{
if ($message === null)
$message = Rights::t('core', 'You are not authorized to perform this action.');
$user = Yii::app()->getUser();
if ($user->isGuest === true)
$user->loginRequired();
else
throw new CHttpException(403, $message);
}
RController::allowedActions ( )
Returns
string the actions that are always allowed separated by commas.

Definition at line 50 of file RController.php.

Referenced by filterRights().

{
return '';
}
RController::filterRights (   $filterChain)

The filter method for 'rights' access filter. This filter is a wrapper of CAccessControlFilter.

Parameters
CFilterChain$filterChainthe filter chain that the filter is on.

Definition at line 40 of file RController.php.

References allowedActions().

{
$filter = new RightsFilter;
$filter->allowedActions = $this->allowedActions();
$filter->filter($filterChain);
}

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