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

  • 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 PositionType extends AbstractType
11: {
12:     public function getName()
13:     {
14:         return 'position';
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', 'x')->set('attr', array('placeholder' => 'x'));
25:         $view->getChild(1)->set('label', 'y')->set('attr', array('placeholder' => 'y'));
26:     }
27: }
28: 
29: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0