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

  • 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:  * WmsSourceSimpleType class
10:  */
11: class WmsSourceSimpleType 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('originUrl', 'text',
30:                       array(
31:                     'required' => true,
32:                     'attr' => array(
33:                         'title' => 'The wms GetCapabilities url.')))
34:                 ->add('username', 'text',
35:                       array(
36:                     'required' => false,
37:                     'attr' => array(
38:                         'title' => 'The username.',
39:                         'autocomplete' => 'off')))
40:                 ->add('password', 'password',
41:                       array(
42:                     'required' => false,
43:                     'attr' => array(
44:                         'title' => 'The password.',
45:                         'autocomplete' => 'off')));
46:     }
47: 
48: }
49: 
50: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0