Class

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

class ObjectStateHandler extends LimitationHandler

Limitation Handler.

Takes care of Converting a Policy limitation from Legacy value to spi value accepted by API.

Constants

STATE_GROUP

Methods

__construct(DatabaseHandler $dbHandler)

Creates a new criterion handler.

from LimitationHandler
toLegacy(Policy $policy)

Translate API STATE limitation to Legacy StateGroup_ limitations.

toSPI(Policy $policy)

Translate Legacy StateGroup_ limitations to API STATE limitation.

Details

in LimitationHandler at line 33
public __construct(DatabaseHandler $dbHandler)

Creates a new criterion handler.

Parameters

DatabaseHandler $dbHandler

at line 29
public toLegacy(Policy $policy)

Translate API STATE limitation to Legacy StateGroup_ limitations.

Parameters

Policy $policy

at line 47
public toSPI(Policy $policy)

Translate Legacy StateGroup_ limitations to API STATE limitation.

Parameters

Policy $policy