Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NIdentity
  • NPermission
  • NSimpleAuthenticator

Interfaces

  • IAuthenticator
  • IAuthorizator
  • IIdentity
  • IPermissionAssertion
  • IResource
  • IRole

Exceptions

  • NAuthenticationException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Interface IPermissionAssertion

Represents conditional ACL Rules with Assertions.

Package: Nette\Security
Author: David Grudl
Located at Security/IPermissionAssertion.php
Methods summary
public boolean
# assert( NPermission $acl, string $roleId, string $resourceId, string|null $privilege )

Returns true if and only if the assertion conditions are met.

Returns true if and only if the assertion conditions are met.

This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the $role, $resource, or $privilege parameters are NPermission::ALL, it means that the query applies to all Roles, Resources, or privileges, respectively.

Parameters

$acl
NPermission
$roleId
string
role
$resourceId
string
resource
$privilege
string|null
privilege

Returns

boolean
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0