Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • MapbenderManagerBundle
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\ManagerBundle;
 4: 
 5: use Symfony\Component\HttpKernel\Bundle\Bundle;
 6: use Mapbender\CoreBundle\Component\MapbenderBundle;
 7: use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
 8: 
 9: class MapbenderManagerBundle extends MapbenderBundle
10: {
11:     public function getManagerControllers()
12:     {
13:         return array(
14:             array(
15:                 'weight' => 10,
16:                 'title' => 'Applications',
17:                 'route' => 'mapbender_manager_application_index',
18:                 'routes' => array(
19:                     'mapbender_manager_application',
20:                 ),
21:                 'subroutes' => array(
22:                     array('title'=>'New Application',
23:                           'route'=>'mapbender_manager_application_new',
24:                           'enabled' => function($securityContext) {
25:                                 $oid = new ObjectIdentity('class', 'Mapbender\CoreBundle\Entity\Application');
26:                                 return $securityContext->isGranted('CREATE', $oid);
27:                           })
28:                 )
29:             ),
30:             array(
31:                 'weight' => 20,
32:                 'title' => 'Services',
33:                 'route' => 'mapbender_manager_repository_index',
34:                 'routes' => array(
35:                     'mapbender_manager_repository',
36:                 ),
37:                 'subroutes' => array(
38:                     array('title'=>'Add Service',
39:                            'route'=>'mapbender_manager_repository_new',
40:                            'enabled' => function($securityContext) {
41:                                 $oid = new ObjectIdentity('class', 'Mapbender\CoreBundle\Entity\Source');
42:                                 return $securityContext->isGranted('CREATE', $oid);
43:                             })
44:                 )
45:             ),
46:         );
47:     }
48: 
49:     public function getRoles()
50:     {
51:         return array(
52:             'ROLE_ADMIN_MAPBENDER_APPLICATION'
53:                 => 'Can administrate applications');
54:     }
55: }
56: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0