Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Identity
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

  • IAuthenticator
  • IAuthorizator
  • IIdentity
  • IResource
  • IRole
  • IUserStorage

Exceptions

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