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

  • WmtsSourceSimpleType
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: namespace Mapbender\WmtsBundle\Form\Type;
 3: 
 4: use Symfony\Component\Form\AbstractType;
 5: use Symfony\Component\Form\FormBuilderInterface;
 6: use Symfony\Component\OptionsResolver\OptionsResolverInterface;
 7: 
 8: //use Mapbender\ManagerBundle\Form\Type\BaseElementType;
 9: 
10: class WmtsSourceSimpleType extends AbstractType {
11:     
12:     public function getName() {
13:         return 'wmtssource';
14:     }
15: 
16:     public function buildForm(FormBuilderInterface $builder, array $options) {
17:         $builder
18:             // Base data
19:             ->add('originUrl', 'text', array(
20:                 'required' => true,
21:                 'attr' => array(
22:                     'title' => 'The wms GetCapabilities url.')))
23:             ->add('username', 'text', array(
24:                 'required' => false,
25:                 'attr' => array(
26:                     'title' => 'The usename.')))
27:             ->add('password', 'text', array(
28:                 'required' => false,
29:                 'attr' => array(
30:                     'title' => 'The password.')));
31:     }
32: }
33: 
34: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0