HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
|
Public Member Functions | |
afterLogin ($fromCookie) | |
checkAccess ($operation, $params=array(), $allowCaching=true) | |
setIsSuperuser ($value) | |
getIsSuperuser () | |
setRightsReturnUrl ($value) | |
getRightsReturnUrl ($defaultUrl=null) | |
updateSession () |
Rights web user class file.
Definition at line 10 of file RWebUser.php.
RWebUser::afterLogin | ( | $fromCookie | ) |
Actions to be taken after logging in. Overloads the parent method in order to mark superusers.
boolean | $fromCookie | whether the login is based on cookie. |
Definition at line 18 of file RWebUser.php.
RWebUser::checkAccess | ( | $operation, | |
$params = array() , |
|||
$allowCaching = true |
|||
) |
Performs access check for this user. Overloads the parent method in order to allow superusers access implicitly.
string | $operation | the name of the operation that need access check. |
array | $params | name-value pairs that would be passed to business rules associated with the tasks and roles assigned to the user. |
boolean | $allowCaching | whether to allow caching the result of access checki. This parameter has been available since version 1.0.5. When this parameter is true (default), if the access check of an operation was performed before, its result will be directly returned when calling this method to check the same operation. If this parameter is false, this method will always call CAuthManager::checkAccess to obtain the up-to-date access result. Note that this caching is effective only within the same request. |
Definition at line 45 of file RWebUser.php.
RWebUser::getIsSuperuser | ( | ) |
Definition at line 62 of file RWebUser.php.
RWebUser::getRightsReturnUrl | ( | $defaultUrl = null | ) |
Returns the URL that the user should be redirected to after updating an authorization item.
string | $defaultUrl | the default return URL in case it was not set previously. If this is null, the application entry URL will be considered as the default return URL. |
Definition at line 85 of file RWebUser.php.
RWebUser::setIsSuperuser | ( | $value | ) |
boolean | $value | whether the user is a superuser. |
Definition at line 54 of file RWebUser.php.
RWebUser::setRightsReturnUrl | ( | $value | ) |
array | $value | return url. |
Definition at line 70 of file RWebUser.php.
RWebUser::updateSession | ( | ) |
Definition at line 95 of file RWebUser.php.