Overview

Namespaces

  • PHP
  • ProgrammingAreHard
    • Arbiter
      • Domain
      • Model
  • Symfony
    • Component
      • Security
        • Acl
          • Exception
          • Model
          • Permission
        • Core
          • User

Classes

  • BasicPermissionMap
  • MaskBuilder

Interfaces

  • PermissionMapInterface
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: /*
 4:  * This file is part of the Symfony package.
 5:  *
 6:  * (c) Fabien Potencier <fabien@symfony.com>
 7:  *
 8:  * For the full copyright and license information, please view the LICENSE
 9:  * file that was distributed with this source code.
10:  */
11: 
12: namespace Symfony\Component\Security\Acl\Permission;
13: 
14: /**
15:  * This is the interface that must be implemented by permission maps.
16:  *
17:  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
18:  */
19: interface PermissionMapInterface
20: {
21:     /**
22:      * Returns an array of bitmasks.
23:      *
24:      * The security identity must have been granted access to at least one of
25:      * these bitmasks.
26:      *
27:      * @param string $permission
28:      * @param object $object
29:      * @return array may return null if permission/object combination is not supported
30:      */
31:     public function getMasks($permission, $object);
32: 
33:     /**
34:      * Whether this map contains the given permission
35:      *
36:      * @param string $permission
37:      * @return bool
38:      */
39:     public function contains($permission);
40: }
41: 
Arbiter API documentation generated by ApiGen 2.8.0