kernel/classes/ezpolicy.php

Show: inherited
Table of Contents

File containing the eZPolicy 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  

\eZPolicy

Package: kernel

File containing the eZPolicy 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  $Disabled= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $LimitIdentifier= ''
Details
Type
n/a
Propertypublic  $LimitValue= ''
Details
Type
n/a
Propertypublic  $PersistentDataDirty= ''
Details
Type
n/a
Inherited_from
\eZPersistentObject::$$PersistentDataDirty  
Propertypublic  $UserRoleID= ''
Details
Type
n/a

Methods

methodpublicaccessArray(  $ignoreLimitIdentifier = false ) : void

Parameters
Name Type Description
$ignoreLimitIdentifier
methodpublicappendLimitation(  $identifier,  $values ) : void

Parameters
Name Type Description
$identifier
$values
methodpublicattribute(  $attr,  $noFunction = false ) : void
inherited

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

Inherited from: \eZPersistentObject::attributes()
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( int $roleID ) : \eZPolicy

Copies the policy and its limitations to another role

Parameters
Name Type Description
$roleID int

the ID of the role to copy to

Returns
Type Description
\eZPolicy the created eZPolicy copy
methodpubliccount(  $def,  $conds = null,  $field = null ) : void
staticinherited

Inherited from: \eZPersistentObject::count()
Parameters
Name Type Description
$def
$conds
$field
methodpubliccreate(  $roleID,  $module,  $function ) : void
static

Parameters
Name Type Description
$roleID
$module
$function
methodpubliccreateNew(  $roleID,  $params = array() ) : void
static

Parameters
Name Type Description
$roleID
$params
methodpubliccreateTemporaryCopy( ) : \eZPolicy

Creates a temporary copy for this policy so that it can be edited. The policies will be linked to the copy

Returns
Type Description
\eZPolicy the temporary copy
Details
Since
4.4  
methodpublicdefinition( ) : void
static

methodpubliceZPersistentObject(  $row ) : void
inherited

Inherited from: \eZPersistentObject::eZPersistentObject()
Parameters
Name Type Description
$row
methodpubliceZPolicy(  $row ) : void

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

Inherited from: \eZPersistentObject::escapeArray()
Parameters
Name Type Description
$array
methodpublicfetch( int $policyID ) : \eZPolicy
static

Fetches a policy by ID

Parameters
Name Type Description
$policyID int

Policy ID

Returns
Type Description
\eZPolicy
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
methodpublicfetchTemporaryCopy( int $policyID ) : \eZPolicy
static

Fetches the temporary copy of a policy

Parameters
Name Type Description
$policyID int

The original policy ID

Returns
Type Description
\eZPolicy
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

methodpubliclimitationList(  $useCache = true,  $ignoreLimitIdentifier = false ) : void

Parameters
Name Type Description
$useCache
$ignoreLimitIdentifier
methodpublicnewObjectOrder(  $def,  $orderField,  $conditions ) : void
staticinherited

Inherited from: \eZPersistentObject::newObjectOrder()
Parameters
Name Type Description
$def
$orderField
$conditions
methodpublicremove(  $conditions = null,  $extraConditions = null ) : void
inherited

Inherited from: \eZPersistentObject::remove()
Parameters
Name Type Description
$conditions
$extraConditions
methodpublicremoveByID(  $id ) : void
static

Parameters
Name Type Description
$id
methodpublicremoveObject(  $def,  $conditions = null,  $extraConditions = null ) : void
staticinherited

Inherited from: \eZPersistentObject::removeObject()
Parameters
Name Type Description
$def
$conditions
$extraConditions
methodpublicremoveThis(  $id = false ) : 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
methodpublicrole( ) : void

methodpublicsaveTemporary( ) : void

Saves a temporary limitation created with {@link createTemporaryCopy()}

Throws
Exception Description
\Exception The policy isn't a temporary one
methodpublicsetAttribute(  $attr,  $val ) : void

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
methodpublicupdateObjectList(  $parameters ) : void
staticinherited

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

Documentation was generated by DocBlox 0.18.1.