PHP Class eZ\Publish\Core\Persistence\Legacy\User\Role\LimitationHandler\ObjectStateHandler

Takes care of Converting a Policy limitation from Legacy value to spi value accepted by API.
Inheritance: extends eZ\Publish\Core\Persistence\Legacy\User\Role\LimitationHandler
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
toLegacy ( eZ\Publish\SPI\Persistence\User\Policy $policy ) Translate API STATE limitation to Legacy StateGroup_ limitations.
toSPI ( eZ\Publish\SPI\Persistence\User\Policy $policy ) Translate Legacy StateGroup_ limitations to API STATE limitation.

Protected Methods

Method Description
getGroupMap ( array $limitIds = null ) Query for groups identifiers and id's.

Method Details

getGroupMap() protected method

Query for groups identifiers and id's.
protected getGroupMap ( array $limitIds = null )
$limitIds array

toLegacy() public method

Translate API STATE limitation to Legacy StateGroup_ limitations.
public toLegacy ( eZ\Publish\SPI\Persistence\User\Policy $policy )
$policy eZ\Publish\SPI\Persistence\User\Policy

toSPI() public method

Translate Legacy StateGroup_ limitations to API STATE limitation.
public toSPI ( eZ\Publish\SPI\Persistence\User\Policy $policy )
$policy eZ\Publish\SPI\Persistence\User\Policy