Class RDbAuthManager
Rights authorization manager class file.
- CComponent
-
CApplicationComponent implements IApplicationComponent
-
CAuthManager implements IAuthManager
-
CDbAuthManager
-
RDbAuthManager
Author: Christoffer Niska <cniska@live.com>
Since: 0.9.7
Located at crisu83/yii-rights/components/RDbAuthManager.php
Methods summary
public
boolean
|
#
addItemChild( string $itemName, string $childName )
Adds an item as a child of another item. Overloads the parent method to make sure that we do not add already existing children. |
public
CAuthAssignment
|
|
public
CAuthItem
|
#
getAuthItem( string $name, boolean $allowCaching = true )
Returns the authorization item with the specified name. Overloads the parent method to allow for runtime caching. |
public
array
|
#
getAuthItemsByNames( array $names, boolean $nested = false )
Returns the specified authorization items. |
public
array
|
#
getAuthItems( integer $type = null, mixed $userId = null, boolean $sort = true )
Returns the authorization items of the specific type and user. Overloads the parent method to allow for sorting. |
public
array
|
#
getItemChildren( mixed $names, boolean $allowCaching = true )
Returns the children of the specified item. Overloads the parent method to allow for caching. |
public
|
|
public
|
Methods inherited from CDbAuthManager
checkAccess()
,
checkAccessRecursive()
,
clearAll()
,
clearAuthAssignments()
,
createAuthItem()
,
detectLoop()
,
getAuthAssignment()
,
getAuthAssignments()
,
getDbConnection()
,
hasItemChild()
,
init()
,
isAssigned()
,
removeAuthItem()
,
removeItemChild()
,
revoke()
,
save()
,
saveAuthAssignment()
,
saveAuthItem()
,
usingSqlite()
Methods inherited from CAuthManager
checkItemChildType()
,
createOperation()
,
createRole()
,
createTask()
,
executeBizRule()
,
getOperations()
,
getRoles()
,
getTasks()
Methods inherited from CApplicationComponent
getIsInitialized()
Methods inherited from CComponent
__call()
,
__get()
,
__isset()
,
__set()
,
__unset()
,
asa()
,
attachBehavior()
,
attachBehaviors()
,
attachEventHandler()
,
canGetProperty()
,
canSetProperty()
,
detachBehavior()
,
detachBehaviors()
,
detachEventHandler()
,
disableBehavior()
,
disableBehaviors()
,
enableBehavior()
,
enableBehaviors()
,
evaluateExpression()
,
getEventHandlers()
,
hasEvent()
,
hasEventHandler()
,
hasProperty()
,
raiseEvent()
Magic methods summary
Properties summary
public
string
|
$rightsTable |
#
the name of the rights table. |
Properties inherited from CDbAuthManager
$assignmentTable
,
$connectionID
,
$db
,
$itemChildTable
,
$itemTable
Properties inherited from CAuthManager
$defaultRoles
,
$showErrors
Properties inherited from CApplicationComponent
$behaviors
Magic properties inherited from CDbAuthManager
$authItems
Magic properties inherited from CAuthManager
$operations
,
$roles
,
$tasks
Magic properties inherited from CApplicationComponent
$isInitialized