Namespaces

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

Classes

  • Identity
  • Permission
  • SimpleAuthenticator

Interfaces

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

Exceptions

  • AuthenticationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: namespace Nette\Security;
13: 
14: use Nette;
15: 
16: 
17: 
18: /**
19:  * Authorizator checks if a given role has authorization
20:  * to access a given resource.
21:  *
22:  * @author     David Grudl
23:  */
24: interface IAuthorizator
25: {
26:     /** Set type: all */
27:     const ALL = NULL;
28: 
29:     /** Permission type: allow */
30:     const ALLOW = TRUE;
31: 
32:     /** Permission type: deny */
33:     const DENY = FALSE;
34: 
35: 
36:     /**
37:      * Performs a role-based authorization.
38:      * @param  string  role
39:      * @param  string  resource
40:      * @param  string  privilege
41:      * @return bool
42:      */
43:     function isAllowed($role = self::ALL, $resource = self::ALL, $privilege = self::ALL);
44: 
45: }
46: 
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0