Interface IAuthorizator (namespace Nette\Security)


Authorizator checks if a given role has authorization to access a given resource.


Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Security/IAuthorizator.php (line 31)
Public Method Summary
bool
isAllowed ([string $role = self::ALL], [string $resource = self::ALL], [string $privilege = self::ALL])
Performs a role-based authorization.
Constant Summary
null ALL NULL

line 34

Set type: all
bool ALLOW TRUE

line 37

Permission type: allow
bool DENY FALSE

line 40

Permission type: deny

Method Details

line 50

isAllowed

public bool isAllowed ([string $role = self::ALL], [string $resource = self::ALL], [string $privilege = self::ALL])

Performs a role-based authorization.

Input
string $role role
string $resource resource
string $privilege privilege