PHP 클래스 eZ\Publish\Core\Base\Exceptions\UnauthorizedException

Use: throw new UnauthorizedException( 'content', 'read', array( 'contentId' => 42 ) );
상속: extends eZ\Publish\API\Repository\Exceptions\UnauthorizedException, implements eZ\Publish\Core\Base\Exceptions\Httpable, implements eZ\Publish\Core\Base\Translatable, use trait eZ\Publish\Core\Base\TranslatableBase
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $module, string $function, array $properties = null, Exception $previous = null ) Generates: User does not have access to '{$function}' '{$module}'[ with: %property.key% '%property.value%'].

메소드 상세

__construct() 공개 메소드

Example: User does not have access to 'read' 'content' with: id '44', type 'article'
public __construct ( string $module, string $function, array $properties = null, Exception $previous = null )
$module string The module name should be in sync with the name of the domain object in question
$function string
$properties array Key value pair with non sensitive data on what kind of data user does not have access to
$previous Exception