Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Identity
  • Passwords
  • 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 (https://davidgrudl.com)
 6:  */
 7: 
 8: namespace Nette\Security;
 9: 
10: 
11: /**
12:  * Authorizator checks if a given role has authorization
13:  * to access a given resource.
14:  */
15: interface IAuthorizator
16: {
17:     /** Set type: all */
18:     const ALL = NULL;
19: 
20:     /** Permission type: allow */
21:     const ALLOW = TRUE;
22: 
23:     /** Permission type: deny */
24:     const DENY = FALSE;
25: 
26: 
27:     /**
28:      * Performs a role-based authorization.
29:      * @param  string  role
30:      * @param  string  resource
31:      * @param  string  privilege
32:      * @return bool
33:      */
34:     function isAllowed($role, $resource, $privilege);
35: 
36: }
37: 
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0