eZPublishCommunityProject  2013.4
eZ\Publish\Core\Limitation\OwnerLimitationType Class Reference

OwnerLimitation is a Content limitation. More...

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

Public Member Functions

 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...
 

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

OwnerLimitation is a Content limitation.

Member Function Documentation

eZ\Publish\Core\Limitation\OwnerLimitationType::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\OwnerLimitationType::buildValue ( array  $limitationValues)

Create the Limitation Value.

Parameters
mixed[]$limitationValues
Returns

Implements eZ\Publish\SPI\Limitation\Type.

eZ\Publish\Core\Limitation\OwnerLimitationType::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
Todo:
Add support for $limitationValues[0] == 2 when session values can be injected somehow, or deprecate

Implements eZ\Publish\SPI\Limitation\Type.

eZ\Publish\Core\Limitation\OwnerLimitationType::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.


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