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

  • WmsLoader
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
  1: <?php
  2: 
  3: namespace Mapbender\WmsBundle\Element;
  4: 
  5: use Mapbender\CoreBundle\Component\Element;
  6: 
  7: /**
  8:  * WmsLoader
  9:  * 
 10:  * @author Karim Malhas
 11:  * @author Paul Schmidt
 12:  */
 13: class WmsLoader extends Element
 14: {
 15: 
 16:     /**
 17:      * @inheritdoc
 18:      */
 19:     static public function getClassTitle()
 20:     {
 21:         return "WmsLoader";
 22:     }
 23: 
 24:     /**
 25:      * @inheritdoc
 26:      */
 27:     static public function getClassDescription()
 28:     {
 29:         return "";
 30:     }
 31: 
 32:     /**
 33:      * @inheritdoc
 34:      */
 35:     static public function getClassTags()
 36:     {
 37:         return array("wms", "loader");
 38:     }
 39: 
 40:     /**
 41:      * @inheritdoc
 42:      */
 43:     public static function getDefaultConfiguration()
 44:     {
 45:         return array(
 46:             "tooltip" => "",
 47:             "target" => null,
 48:             "autoOpen" => false,
 49:             "defaultFormat" => "image/png",
 50:             "defaultInfoFormat" => "text/html",
 51:             "splitLayers" => false
 52:         );
 53:     }
 54: 
 55:     /**
 56:      * @inheritdoc
 57:      */
 58:     public function getWidgetName()
 59:     {
 60:         return 'mapbender.mbWmsloader';
 61:     }
 62: 
 63:     /**
 64:      * @inheritdoc
 65:      */
 66:     public function getAssets()
 67:     {
 68:         return array('js' => array(
 69:             '@FOMCoreBundle/Resources/public/js/widgets/popup.js',
 70:             'mapbender.element.wmsloader.js'
 71:             ),'css' => array());
 72:     }
 73: 
 74:     /**
 75:      * @inheritdoc
 76:      */
 77:     public static function getType()
 78:     {
 79:         return 'Mapbender\WmsBundle\Element\Type\WmsLoaderAdminType';
 80:     }
 81: 
 82:     /**
 83:      * @inheritdoc
 84:      */
 85:     public static function getFormTemplate()
 86:     {
 87:         return 'MapbenderManagerBundle:Element:wms_loader.html.twig';
 88:     }
 89: 
 90:     /**
 91:      * @inheritdoc
 92:      */
 93:     public function render()
 94:     {
 95:         return $this->container->get('templating')
 96:                         ->render('MapbenderWmsBundle:Element:wmsloader.html.twig',
 97:                                  array(
 98:                             'id' => $this->getId(),
 99:                             "title" => $this->getTitle(),
100:                             'configuration' => $this->getConfiguration()));
101:     }
102: 
103: }
104: 
105: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0