PHP Class eZ\Publish\Core\Base\Exceptions\UnauthorizedException

Use: throw new UnauthorizedException( 'content', 'read', array( 'contentId' => 42 ) );
Inheritance: 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
显示文件 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__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%'].

Method Details

__construct() public method

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