PHP 클래스 Sulu\Component\Content\Document\Subscriber\SecuritySubscriber

상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $permissions )
getSubscribedEvents ( )
handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event ) Adds the security information to the hydrated object.
handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) Adds the security information to the node.
supports ( $document ) : boolean Shows if the given document is supported by this subscriber.

비공개 메소드들

메소드 설명
getAllowedPermissions ( $permissions ) : array Extracts the keys of the allowed permissions into an own array.

메소드 상세

__construct() 공개 메소드

public __construct ( array $permissions )
$permissions array

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

handleHydrate() 공개 메소드

Adds the security information to the hydrated object.
public handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event )
$event Sulu\Component\DocumentManager\Event\HydrateEvent

handlePersist() 공개 메소드

Adds the security information to the node.
public handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event )
$event Sulu\Component\DocumentManager\Event\PersistEvent

supports() 공개 메소드

Shows if the given document is supported by this subscriber.
public supports ( $document ) : boolean
$document
리턴 boolean