Mapbender 3.0.6.0 API documenation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • FOM
    • CoreBundle
      • Component
      • DependencyInjection
      • Doctrine
        • Types
      • Form
        • DataTransformer
        • Type
    • ManagerBundle
      • Component
      • Configuration
      • Controller
      • DependencyInjection
        • Compiler
      • Form
        • Type
      • Routing
    • UserBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
        • Factory
      • Entity
      • EventListener
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Firewall
  • Mapbender
    • Component
    • CoreBundle
      • Asset
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
          • Application
      • DependencyInjection
        • Compiler
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
      • Tests
        • Controller
      • Utils
      • Validator
        • Constraints
    • DataSourceBundle
      • Component
        • Drivers
          • Interfaces
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Extension
      • Tests
    • DigitizerBundle
      • Component
      • Element
        • Type
      • Entity
      • Utils
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Component
        • Exception
      • Controller
      • Form
        • DataTransformer
        • Type
      • Template
    • MobileBundle
      • DependencyInjection
      • Template
    • PrintBundle
      • Component
      • Element
        • Type
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
      • Tests
        • Component
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • Event
      • Form
        • DataTransformer
        • EventListener
        • Type
  • None
  • OwsProxy3
    • CoreBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Entity
      • Event
      • EventListener
      • Worker
  • PHP

Classes

  • AclManager
  • FOMIdentitiesProvider
  • RolesService

Interfaces

  • IdentitiesProviderInterface

Class AclManager

ACL Manager service implementation

This manager is available as a service called 'mapbender.acl' and is meant to be used with a form and will delete/update/add ACEs.

Namespace: FOM\UserBundle\Component
Author: Christian Wygoda
Author: Andriy Oblivantsev
Located at FOM/UserBundle/Component/AclManager.php

Methods summary

public
# __construct( Symfony\Component\Security\Acl\Dbal\MutableAclProvider $aclProvider )

AclManager constructor.

AclManager constructor.

Parameters

$aclProvider
public
# setObjectACLFromForm( object $entity, object $form, string $type )

Update ACEs from a form of class FOM\UserBundle\Form\Type\ACLType (commonly 'acl')

Update ACEs from a form of class FOM\UserBundle\Form\Type\ACLType (commonly 'acl')

Parameters

$entity
Entity to update ACL for
$form
ACLType form object
$type
ACE type to update (object or class)
public
# setObjectACL( object $entity, array $aces, string $type )

Update ACEs for entity

Update ACEs for entity

Parameters

$entity
Entity to update ACL for
$aces
Array with ACEs (not Entry objects!)
$type
ACE type to update (object or class)
public
# setClassACLFromForm( mixed $class, object $form )

Update ACEs from a form of class FOM\UserBundle\Form\Type\ACLType (commonly 'acl')

Update ACEs from a form of class FOM\UserBundle\Form\Type\ACLType (commonly 'acl')

Parameters

$class
$form
ACLType form object
protected
# setClassACL( mixed $class, mixed $aces )

Parameters

$class
$aces

Throws

Exception
\Exception
public Symfony\Component\Security\Acl\Domain\Acl
# getACL( mixed $entity, boolean $create = true )

Get ACL object manager.

Get ACL object manager.

Parameters

$entity
$create

Returns

Symfony\Component\Security\Acl\Domain\Acl
| null

Throws

Exception
\Exception
Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException
\Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException
public Symfony\Component\Security\Acl\Domain\Entry
# getObjectAclEntries( mixed $entity )

Get object ACL entries

Get object ACL entries

Parameters

$entity

Returns

Symfony\Component\Security\Acl\Domain\Entry
Entry[]
public boolean
# hasObjectAclEntries( mixed $entity )

Get true if object has some ACL entries

Get true if object has some ACL entries

Parameters

$entity

Returns

boolean
bool
public FOM\UserBundle\Entity\AclEntry[]
# getObjectAclEntriesAsArray( mixed $entity )

Consolidate object ACL entries to an <AclEntry> array.

Consolidate object ACL entries to an <AclEntry> array.

Parameters

$entity

Returns

FOM\UserBundle\Entity\AclEntry[]
AclEntry[]
public Symfony\Component\Security\Acl\Domain\ObjectIdentity
# getEntityObjectId( mixed $entity )

Parameters

$entity

Returns

Symfony\Component\Security\Acl\Domain\ObjectIdentity
\Symfony\Component\Security\Acl\Domain\ObjectIdentity

Throws

Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException
\Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException

Magic methods summary

Properties summary

protected Symfony\Component\Security\Acl\Dbal\MutableAclProvider $aclProvider
#
Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0