Overview

Namespaces

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

Classes

  • IdentityFactory
  • IndexedAce
  • ObjectArbiter
  • PermissionMap
  • Permissions
  • PermissionsFactory
  • PermissionsTransformer
  • Overview
  • Namespace
  • Class
  • Tree

Class Permissions

ProgrammingAreHard\Arbiter\Domain\Permissions implements ProgrammingAreHard\Arbiter\Model\PermissionsInterface
Namespace: ProgrammingAreHard\Arbiter\Domain
Located at Domain/Permissions.php
Methods summary
public
# __construct( array $permissions = array() )

Constructor.

Constructor.

Parameters

$permissions
string[]
$permissions
public mixed
# add( string $permission )

Add the permission.

Add the permission.

Parameters

$permission
string
$permission

Returns

mixed
$this

Implementation of

ProgrammingAreHard\Arbiter\Model\PermissionsInterface::add()
public mixed
# remove( string $permission )

Remove the permission.

Remove the permission.

Parameters

$permission
string
$permission

Returns

mixed
$this

Implementation of

ProgrammingAreHard\Arbiter\Model\PermissionsInterface::remove()
public boolean
# contains( string $permission )

Does the permissions have the permission?

Does the permissions have the permission?

Parameters

$permission
string
$permission

Returns

boolean

Implementation of

ProgrammingAreHard\Arbiter\Model\PermissionsInterface::contains()
public string[]
# toArray( )

Convert to array.

Convert to array.

Returns

string[]

Implementation of

ProgrammingAreHard\Arbiter\Model\PermissionsInterface::toArray()
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
public integer
# count( )

Returns

integer

Implementation of

Countable::count()
public string
# __toString( )

Returns

string
Properties summary
protected string[] $permissions array()
#

Permissions.

Permissions.

Arbiter API documentation generated by ApiGen 2.8.0