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

  • AboutDialog
  • ActivityIndicator
  • Button
  • CoordinatesDisplay
  • Copyright
  • FeatureInfo
  • GpsPosition
  • Layertree
  • Legend
  • Map
  • Overview
  • PrintClient
  • Ruler
  • ScaleBar
  • ScaleDisplay
  • ScaleSelector
  • SearchRouter
  • SrsSelector
  • ZoomBar
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
  1: <?php
  2: 
  3: namespace Mapbender\CoreBundle\Element;
  4: 
  5: use Mapbender\CoreBundle\Component\Element;
  6: use Symfony\Component\HttpFoundation\Response;
  7: use Symfony\Component\Security\Core\User\UserInterface;
  8: 
  9: /**
 10:  * Featureinfo element
 11:  *
 12:  * This element will provide feature info for most layer types
 13:  *
 14:  * @author Christian Wygoda
 15:  */
 16: class FeatureInfo extends Element
 17: {
 18: 
 19:     /**
 20:      * @inheritdoc
 21:      */
 22:     static public function getClassTitle()
 23:     {
 24:         return "Feature Info Dialog";
 25:     }
 26: 
 27:     /**
 28:      * @inheritdoc
 29:      */
 30:     static public function getClassDescription()
 31:     {
 32:         return "Feature info tool for most layer types";
 33:     }
 34: 
 35:     /**
 36:      * @inheritdoc
 37:      */
 38:     static public function getClassTags()
 39:     {
 40:         return array('dialog', 'featureinfo');
 41:     }
 42: 
 43:     /**
 44:      * @inheritdoc
 45:      */
 46:     public static function getDefaultConfiguration()
 47:     {
 48:         return array(
 49:             'tooltip' => 'Feature Info Dialog',
 50:             "autoOpen" => false,
 51:             "deactivateOnClose" => true,
 52:             "target" => null);
 53:     }
 54: 
 55:     /**
 56:      * @inheritdoc
 57:      */
 58:     public function getWidgetName()
 59:     {
 60:         return 'mapbender.mbFeatureInfo';
 61:     }
 62: 
 63:     /**
 64:      * @inheritdoc
 65:      */
 66:     public static function getType()
 67:     {
 68:         return 'Mapbender\CoreBundle\Element\Type\FeatureInfoAdminType';
 69:     }
 70: 
 71:     /**
 72:      * @inheritdoc
 73:      */
 74:     public function getAssets()
 75:     {
 76:         return array(
 77:             'js' => array('mapbender.element.featureInfo.js',
 78:                           '@FOMCoreBundle/Resources/public/js/widgets/popup.js',
 79:                           '@FOMCoreBundle/Resources/public/js/frontend/components.js'
 80:                          ),'css' => array()
 81:         );
 82:     }
 83: 
 84:     /**
 85:      * @inheritdoc
 86:      */
 87:     public function render()
 88:     {
 89:         $configuration = parent::getConfiguration();
 90:         return $this->container->get('templating')
 91:                         ->render('MapbenderCoreBundle:Element:featureinfo.html.twig',
 92:                                  array(
 93:                             'id' => $this->getId(),
 94:                             'configuration' => $configuration,
 95:                             'title' => $this->getTitle()));
 96:     }
 97: 
 98:     /**
 99:      * @inheritdoc
100:      */
101:     public static function getFormTemplate()
102:     {
103:         return 'MapbenderManagerBundle:Element:featureinfo.html.twig';
104:     }
105: }
106: 
107: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0