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

  • ExtentType
  • LayersetType
  • PositionType
  • StateType
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\CoreBundle\Form\Type;
 4: 
 5: use Symfony\Component\Form\AbstractType;
 6: use Symfony\Component\Form\FormBuilderInterface;
 7: use Symfony\Component\Form\FormView;
 8: use Symfony\Component\Form\FormInterface;
 9: 
10: class ExtentType extends AbstractType
11: {
12:     public function getName()
13:     {
14:         return 'extent';
15:     }
16: 
17:     public function getParent()
18:     {
19:         return 'collection';
20:     }
21: 
22:     public function finishView(FormView $view, FormInterface $form, array $options)
23:     {
24:         $view->getChild(0)->set('label', 'min x')->set('attr', array('placeholder' => 'min x'));
25:         $view->getChild(1)->set('label', 'min y')->set('attr', array('placeholder' => 'min y'));
26:         $view->getChild(2)->set('label', 'max x')->set('attr', array('placeholder' => 'max x'));
27:         $view->getChild(3)->set('label', 'max y')->set('attr', array('placeholder' => 'max y'));
28:     }
29: }
30: 
31: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0