eZPublishCommunityProject  2012.12
eZ\Publish\Core\Limitation\ParentContentTypeLimitationType Class Reference

ParentContentTypeLimitation is a Content limitation. More...

+ Inheritance diagram for eZ\Publish\Core\Limitation\ParentContentTypeLimitationType:
+ Collaboration diagram for eZ\Publish\Core\Limitation\ParentContentTypeLimitationType:

Public Member Functions

 __construct (SPIPersistenceHandler $persistence)
 
 acceptValue (APILimitationValue $limitationValue)
 Accepts a Limitation value. More...
 
 buildValue (array $limitationValues)
 Create the Limitation Value. More...
 
 getCriterion (APILimitationValue $value, APIUser $currentUser)
 Returns Criterion for use in find() query. More...
 
 valueSchema ()
 Returns info on valid $limitationValues. More...
 
- Public Member Functions inherited from eZ\Publish\SPI\Limitation\Type
 evaluate (APILimitationValue $value, APIUser $currentUser, APIValueObject $object, APIValueObject $target=null)
 Evaluate permission against content and placement. More...
 

Protected Attributes

 $persistence
 

Additional Inherited Members

- Public Attributes inherited from eZ\Publish\SPI\Limitation\Type
const VALUE_SCHEMA_LOCATION_ID = 1
 Constants for valueSchema() return values. More...
 
const VALUE_SCHEMA_LOCATION_PATH = 2
 

Detailed Description

ParentContentTypeLimitation is a Content limitation.

Constructor & Destructor Documentation

eZ\Publish\Core\Limitation\ParentContentTypeLimitationType::__construct ( SPIPersistenceHandler  $persistence)
Parameters
\eZ\Publish\SPI\Persistence\Handler$persistence

Member Function Documentation

eZ\Publish\Core\Limitation\ParentContentTypeLimitationType::acceptValue ( APILimitationValue  $limitationValue)

Accepts a Limitation value.

Makes sure LimitationValue object is of correct type and that ->limitationValues is valid according to valueSchema().

Parameters
\eZ\Publish\API\Repository\Values\User\Limitation$limitationValue
Returns
boolean

Implements eZ\Publish\SPI\Limitation\Type.

eZ\Publish\Core\Limitation\ParentContentTypeLimitationType::buildValue ( array  $limitationValues)

Create the Limitation Value.

Parameters
mixed[]$limitationValues
Returns

Implements eZ\Publish\SPI\Limitation\Type.

eZ\Publish\Core\Limitation\ParentContentTypeLimitationType::getCriterion ( APILimitationValue  $value,
APIUser  $currentUser 
)

Returns Criterion for use in find() query.

Parameters
\eZ\Publish\API\Repository\Values\User\Limitation$value
\eZ\Publish\API\Repository\Values\User\User$currentUser
Returns

Implements eZ\Publish\SPI\Limitation\Type.

eZ\Publish\Core\Limitation\ParentContentTypeLimitationType::valueSchema ( )

Returns info on valid $limitationValues.

Returns
mixed[]|int In case of array, a hash with key as valid limitations value and value as human readable name of that option, in case of int on of VALUE_SCHEMA_ constants.

Implements eZ\Publish\SPI\Limitation\Type.

Member Data Documentation

eZ\Publish\Core\Limitation\ParentContentTypeLimitationType::$persistence
protected

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