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

  • LegendUrlType
  • OnlineResourceType
  • WmsInstanceInstanceLayersType
  • WmsInstanceLayerType
  • WmsSourceSimpleType
  • WmsSourceType
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\WmsBundle\Form\Type;
 4: 
 5: use Symfony\Component\Form\AbstractType;
 6: use Symfony\Component\Form\FormBuilderInterface;
 7: 
 8: /**
 9:  * WmsSourceType class
10:  */
11: class WmsSourceType extends AbstractType
12: {
13: 
14:     /**
15:      * @inheritdoc
16:      */
17:     public function getName()
18:     {
19:         return 'wmssource';
20:     }
21: 
22:     /**
23:      * @inheritdoc
24:      */
25:     public function buildForm(FormBuilderInterface $builder, array $options)
26:     {
27:         $builder
28:                 // Base data
29:                 ->add('url', 'text',
30:                       array(
31:                     'attr' => array(
32:                         'title' => 'The application title, as shown in the browser '
33:                         . 'title bar and in lists.')))
34:                 ->add('username', 'text',
35:                       array(
36:                     'attr' => array(
37:                         'title' => 'The slug is based on the title and used in the '
38:                         . 'application URL.')))
39:                 ->add('password', 'textarea',
40:                       array(
41:                     'required' => false,
42:                     'attr' => array(
43:                         'title' => 'The description is used in overview lists.')));
44:     }
45: 
46: }
47: 
48: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0