Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • 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
        • EventListener
        • 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
  • Size
  • SQLSearchEngine
  • StateHandler
  • Template
  • Utils

Interfaces

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

Class Template

Base class for all application templates.

Direct known subclasses

Mapbender\CoreBundle\Template\Fullscreen
Abstract
Namespace: Mapbender\CoreBundle\Component
Author: Christian Wygoda
Located at Mapbender/CoreBundle/Component/Template.php
Methods summary
public
# __construct( Symfony\Component\DependencyInjection\ContainerInterface $container, Mapbender\CoreBundle\Component\Application $application )
public static string
# getTitle( )

Get the template title.

Get the template title.

This title is mainly used in the backend manager when creating a new application.

Returns

string
public array
# getAssets( string $type )

Get the element assets.

Get the element assets.

Returns an array of references to asset files of the given type. References can either be filenames/path which are searched for in the Resources/public directory of the element's bundle or assetic references indicating the bundle to search in:

array( 'foo.css'), '@MapbenderCoreBundle/Resources/public/foo.css'));

Parameters

$type
string
$type Asset type to list, can be 'css' or 'js'

Returns

array
public static array
# getRegions( )

Get the template regions available in the Twig template.

Get the template regions available in the Twig template.

Returns

array
abstract 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
Properties summary
protected mixed $container
#
protected mixed $application
#
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0