kernel/classes/ezrole.php

Show: inherited
Table of Contents

File containing the eZRole class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Version
4.6.0  

\eZRole

Package: kernel

File containing the eZRole class.

Parent(s)
\eZPersistentObject
Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Version
4.6.0  

Properties

Propertypublic  $AccessArray= ''
Details
Type
n/a
Propertypublic  $CachePolicies= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $Functions= ''
Details
Type
n/a
Propertypublic  $ID= ''
Details
Type
n/a
Propertypublic  $LimitIdentifier= ''
Details
Type
n/a
Propertypublic  $LimitValue= ''
Details
Type
n/a
Propertypublic  $Modules= ''
Details
Type
n/a
Propertypublic  $Name= ''
Details
Type
n/a
Propertypublic  $PersistentDataDirty= ''
Details
Type
n/a
Inherited_from
\eZPersistentObject::$$PersistentDataDirty  
Propertypublic  $Policies= ''
Details
Type
n/a
Propertypublic  $PolicyArray= ''
Details
Type
n/a
Propertypublic  $Sets= ''
Details
Type
n/a
Propertypublic  $UserRoleID= ''
Details
Type
n/a

Methods

methodpublicaccessArray(  $ignoreLimitIdentifier = false ) : void

Parameters
Name Type Description
$ignoreLimitIdentifier
methodpublicaccessArrayByUserID( array $idArray, bool $recursive = false ) : array
static

Return access array by passing in list of groups user belongs to and his user id

Parameters
Name Type Description
$idArray array

Array of eZContentObject IDs, either groups + user id or user id's only If only user id's, then remember to set $recursive to true

$recursive bool

See {@link eZRole::fetchByUser()}

Returns
Type Description
array Hash with complete access limitation description
methodpublicappendPolicy(  $module,  $function,  $limitations = array() ) : void

Parameters
Name Type Description
$module
$function
$limitations
methodpublicassignToUser(  $userID,  $limitIdent = '',  $limitValue = '' ) : void

Parameters
Name Type Description
$userID
$limitIdent
$limitValue
methodpublicattribute(  $attr,  $noFunction = false ) : void
inherited

Inherited from: \eZPersistentObject::attribute()
Parameters
Name Type Description
$attr
$noFunction
methodpublicattributes( ) : void
inherited

Inherited from: \eZPersistentObject::attributes()
methodpubliccleanupByNode(  $node ) : void
static

Parameters
Name Type Description
$node
methodpublicconditionText(  $conditions ) : void
staticinherited

Inherited from: \eZPersistentObject::conditionText()
Parameters
Name Type Description
$conditions
methodpublicconditionTextByRow(  $conditions,  $row ) : void
staticinherited

Inherited from: \eZPersistentObject::conditionTextByRow()
Parameters
Name Type Description
$conditions
$row
methodpubliccopy( ) : void

methodpubliccopyPolicies(  $roleID ) : void

Parameters
Name Type Description
$roleID
methodpubliccount(  $def,  $conds = null,  $field = null ) : void
staticinherited

Inherited from: \eZPersistentObject::count()
Parameters
Name Type Description
$def
$conds
$field
methodpubliccreate(  $roleName,  $version = 0 ) : void
static

Parameters
Name Type Description
$roleName
$version
methodpubliccreateNew( ) : void
static

methodpubliccreateTemporaryVersion( ) : void

methodpublicdefinition( ) : void
static

methodpubliceZPersistentObject(  $row ) : void
inherited

Inherited from: \eZPersistentObject::eZPersistentObject()
Parameters
Name Type Description
$row
methodpubliceZRole(  $row = array() ) : void

Parameters
Name Type Description
$row
methodpublicescapeArray(  $array ) : void
staticinherited

Inherited from: \eZPersistentObject::escapeArray()
Parameters
Name Type Description
$array
methodpublicexpireCache( ) : void
static

methodpublicfetch(  $roleID,  $version = 0 ) : void
static

Parameters
Name Type Description
$roleID
$version
methodpublicfetchByName(  $roleName,  $version = 0 ) : void
static

Parameters
Name Type Description
$roleName
$version
methodpublicfetchByOffset(  $offset,  $limit,  $asObject = true,  $ignoreTemp = false,  $ignoreNew = true ) : void
static

Parameters
Name Type Description
$offset
$limit
$asObject
$ignoreTemp
$ignoreNew
methodpublicfetchByUser( array $idArray, bool $recursive = false ) : \array(eZRole)
static

Returns the roles matching the given users' eZContentObject ID array

Parameters
Name Type Description
$idArray array

Array of eZContentObject IDs, either groups + user id or user id's only If only user id's, then remember to set $recursive to true

$recursive bool

If true, roles will be looked up for all nodes of the id's and it's parents

Returns
Type Description
\array(eZRole)
methodpublicfetchIDListByUser( \array(eZContentObjectID) $idArray ) : \array(eZRoleID)
static

Fetches the list of roles ID matching an array of eZContentObject IDs (either users and/or groups IDs)

Parameters
Name Type Description
$idArray \array(eZContentObjectID)
Returns
Type Description
\array(eZRoleID)
methodpublicfetchList(  $tempVersions = false ) : void
static

Parameters
Name Type Description
$tempVersions
methodpublicfetchObject(  $def,  $field_filters,  $conds,  $asObject = true,  $grouping = null,  $custom_fields = null ) : void
staticinherited

Inherited from: \eZPersistentObject::fetchObject()
Parameters
Name Type Description
$def
$field_filters
$conds
$asObject
$grouping
$custom_fields
methodpublicfetchObjectList(  $def,  $field_filters = null,  $conds = null,  $sorts = null,  $limit = null,  $asObject = true,  $grouping = false,  $custom_fields = null,  $custom_tables = null,  $custom_conds = null ) : void
staticinherited

Inherited from: \eZPersistentObject::fetchObjectList()
Parameters
Name Type Description
$def
$field_filters
$conds
$sorts
$limit
$asObject
$grouping
$custom_fields
$custom_tables
$custom_conds
methodpublicfetchRolesByLimitation(  $limit_identifier,  $limit_value ) : void
static

Parameters
Name Type Description
$limit_identifier
$limit_value
methodpublicfetchUserByRole( ) : void

methodpublicfetchUserID( ) : void

methodpublicfill(  $row ) : void
inherited

Inherited from: \eZPersistentObject::fill()
Parameters
Name Type Description
$row
methodpublicgetShortAttributeName(  $db,  $def,  $attrName ) : void
staticinherited

Inherited from: \eZPersistentObject::getShortAttributeName()
Parameters
Name Type Description
$db
$def
$attrName
methodpublichandleRows(  $rows,  $class_name,  $asObject ) : void
staticinherited

Inherited from: \eZPersistentObject::handleRows()
Parameters
Name Type Description
$rows
$class_name
$asObject
methodpublichasAttribute(  $attr ) : void
inherited

Inherited from: \eZPersistentObject::hasAttribute()
Parameters
Name Type Description
$attr
methodpublichasDirtyData( ) : void
inherited

Inherited from: \eZPersistentObject::hasDirtyData()
methodpubliclimitIdentifier( ) : void

methodpubliclimitValue( ) : void

methodpublicnewObjectOrder(  $def,  $orderField,  $conditions ) : void
staticinherited

Inherited from: \eZPersistentObject::newObjectOrder()
Parameters
Name Type Description
$def
$orderField
$conditions
methodpublicpolicyList( ) : void

methodpublicremove(  $conditions = null,  $extraConditions = null ) : void
inherited

Inherited from: \eZPersistentObject::remove()
Parameters
Name Type Description
$conditions
$extraConditions
methodpublicremoveObject(  $def,  $conditions = null,  $extraConditions = null ) : void
staticinherited

Inherited from: \eZPersistentObject::removeObject()
Parameters
Name Type Description
$def
$conditions
$extraConditions
methodpublicremovePolicies(  $fromDB = true ) : void

Parameters
Name Type Description
$fromDB
methodpublicremovePolicy(  $moduleName,  $functionName = false ) : void

Parameters
Name Type Description
$moduleName
$functionName
methodpublicremoveRole(  $roleID ) : void
static

Parameters
Name Type Description
$roleID
methodpublicremoveTemporary( ) : void
static

methodpublicremoveThis( ) : void

methodpublicremoveUserAssignment(  $userID ) : void

Parameters
Name Type Description
$userID
methodpublicremoveUserAssignmentByID(  $id ) : void

Parameters
Name Type Description
$id
methodpublicreorderObject(  $def,  $orderField,  $conditions,  $down = true ) : void
staticinherited

Inherited from: \eZPersistentObject::reorderObject()
Parameters
Name Type Description
$def
$orderField
$conditions
$down
methodpublicreplaceFieldsWithShortNames(  $db,  $fieldDefs,  $fields ) : void
staticinherited

Inherited from: \eZPersistentObject::replaceFieldsWithShortNames()
Parameters
Name Type Description
$db
$fieldDefs
$fields
methodpublicrevertFromTemporaryVersion( ) : void

methodpublicroleCount( boolean $ignoreNew = true ) : int
static

Fetches the count of created roles

Parameters
Name Type Description
$ignoreNew boolean

Wether to ignore draft roles

Returns
Type Description
int
Details
Static
 
methodpublicsetAttribute(  $attr,  $val ) : void
inherited

Inherited from: \eZPersistentObject::setAttribute()
Parameters
Name Type Description
$attr
$val
methodpublicsetHasDirtyData(  $hasDirtyData ) : void
inherited

Inherited from: \eZPersistentObject::setHasDirtyData()
Parameters
Name Type Description
$hasDirtyData
methodpublicstore(  $fieldFilters = null ) : void
inherited

Inherited from: \eZPersistentObject::store()
Parameters
Name Type Description
$fieldFilters
methodpublicstoreObject(  $obj,  $fieldFilters = null ) : void
staticinherited

Inherited from: \eZPersistentObject::storeObject()
Parameters
Name Type Description
$obj
$fieldFilters
methodpublicswapRow(  $table,  $keys,  $order_id,  $rows,  $id1,  $id2 ) : void
staticinherited

Inherited from: \eZPersistentObject::swapRow()
Parameters
Name Type Description
$table
$keys
$order_id
$rows
$id1
$id2
methodpublicsync(  $fieldFilters = null ) : void
inherited

Inherited from: \eZPersistentObject::sync()
Parameters
Name Type Description
$fieldFilters
methodpublicturnOffCaching( ) : void

methodpublicturnOnCaching( ) : void

methodpublicupdateObjectList(  $parameters ) : void
staticinherited

Inherited from: \eZPersistentObject::updateObjectList()
Parameters
Name Type Description
$parameters
methodpublicuserRoleID( ) : void

Documentation was generated by DocBlox 0.18.1.