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: 
 8: class StateType extends AbstractType
 9: {
10:     /**
11:      * @inheritdoc
12:      */
13:     public function getName()
14:     {
15:         return 'state';
16:     }
17: 
18:     /**
19:      * @inheritdoc
20:      */
21:     public function buildForm(FormBuilderInterface $builder, array $options)
22:     {
23:         $builder->add("id", "hidden", array("required" => false))
24:                 ->add("serverurl", "hidden", array("required" => true))
25:                 ->add("slug", "hidden", array("required" => true))
26:                 ->add("json", "hidden", array("required" => true))
27:                 ->add("title", "text", array("required" => true));
28:     }
29: }
30: 
31: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0