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

  • Application
  • ApplicationYAMLMapper
  • BoundingBox
  • Element
  • InstanceConfiguration
  • InstanceConfigurationOptions
  • MapbenderBundle
  • ProxyService
  • SQLSearchEngine
  • StateHandler
  • Template
  • Utils

Interfaces

  • InstanceLayerIn
  • SearchEngine
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class Application

Application is the main Mapbender3 class.

This class is the controller for each application instance. The application class will not perform any access checks, this is due to the controller instantiating an application. The controller should check with the configuration entity to get a list of allowed roles and only then decide to instantiate a new application instance based on the configuration entity.

Namespace: Mapbender\CoreBundle\Component
Author: Christian Wygoda
Located at Mapbender/CoreBundle/Component/Application.php
Methods summary
public
# __construct( Symfony\Component\DependencyInjection\ContainerInterface $container, Mapbender\CoreBundle\Entity\Application $entity, array $urls )

Parameters

$container
Symfony\Component\DependencyInjection\ContainerInterface
$container The container
$entity
Mapbender\CoreBundle\Entity\Application
$entity The configuration entity
$urls
array
$urls Array of runtime URLs
public object
# getEntity( )

Get the configuration entity.

Get the configuration entity.

Returns

object
$entity
public integer
# getId( )

Get the application ID

Get the application ID

Returns

integer
public string
# getSlug( )

Get the application slug

Get the application slug

Returns

string
public string
# getTitle( )

Get the application title

Get the application title

Returns

string
public string
# getDescription( )

Get the application description

Get the application description

Returns

string
public string
# render( string $format = 'html', boolean $html = true, boolean $css = true, boolean $js = true )

Render the application

Render the application

Parameters

$format
string
format Output format, defaults to HTML
$html
boolean
$html Whether to render the HTML itself
$css
boolean
$css Whether to include the CSS links
$js
boolean
$js Whether to include the JavaScript

Returns

string
$html The rendered HTML
public AsseticFactory
# getAssets( string $type )

Get the assets as an AsseticCollection. Filters can be applied later on with the ensureFilter method.

Get the assets as an AsseticCollection. Filters can be applied later on with the ensureFilter method.

Parameters

$type
string
$type Can be 'css' or 'js' to indicate which assets to dump

Returns

AsseticFactory
public Assetic\Asset\StringAsset
# getConfiguration( )

Get the configuration (application, elements, layers) as an StringAsset. Filters can be applied later on with the ensureFilter method.

Get the configuration (application, elements, layers) as an StringAsset. Filters can be applied later on with the ensureFilter method.

Returns

Assetic\Asset\StringAsset
The configuration asset object
public Mapbender\CoreBundle\Component\Element
# getElement( string $id )

Return the element with the given id

Return the element with the given id

Parameters

$id
string
$id The element id

Returns

Mapbender\CoreBundle\Component\Element
public Mapbender\CoreBundle\Component\Template
# getTemplate( )

Get template object

Get template object

Returns

Mapbender\CoreBundle\Component\Template
public array
# getElements( string $region = null )

Get elements, optionally by region

Get elements, optionally by region

Parameters

$region
string
$region Region to get elements for. If null, all elements are returned.

Returns

array
public array
# getLayersets( )

Returns all layersets

Returns all layersets

Returns

array
the layersets
Properties summary
protected Symfony\Component\DependencyInjection\ContainerInterface $container
#

$container The container

$container The container

protected Mapbender\CoreBundle\Component\Template $template
#

$template The application template class

$template The application template class

protected array $elements
#

$elements The elements, ordered by weight

$elements The elements, ordered by weight

protected array $layers
#

$layers The layers

$layers The layers

protected array $urls
#

$urls Runtime URLs

$urls Runtime URLs

Mapbender3 API documenation API documentation generated by ApiGen 2.8.0