PHP 클래스 eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute

$module represents the global scope you want to check access to (e.g. "content") $function represents the feature inside $module (e.g. "read") $limitations are optional limitations to check against (e.g. array( 'valueObject' => $contentInfo )). Supported keys are "valueObject" and "targets". "valueObject": ValueObject you want to check access to (e.g. ContentInfo) "targets": Location, parent or "assignment" (e.g. Section) value object, or an array of the same Usage example: use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute as AuthorizationAttribute; From inside a controller Will check if current user can assign a content to a section, $section being a Section value object. $hasAccess = $this->isGranted( new AuthorizationAttribute( 'content', 'read', array( 'valueObject' => $contentInfo, 'targets' => $section ) ) );
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 프로퍼티들

프로퍼티 타입 설명
$function string
$limitations array
$module string

공개 메소드들

메소드 설명
__construct ( $module = null, $function = null, array $limitations = [] )
__toString ( ) : string String representation so that it's understandable by basic voters.

메소드 상세

__construct() 공개 메소드

public __construct ( $module = null, $function = null, array $limitations = [] )
$limitations array

__toString() 공개 메소드

String representation so that it's understandable by basic voters.
public __toString ( ) : string
리턴 string

프로퍼티 상세

$function 공개적으로 프로퍼티

public string $function
리턴 string

$limitations 공개적으로 프로퍼티

public array $limitations
리턴 array

$module 공개적으로 프로퍼티

public string $module
리턴 string