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

  • WmcEditorAdminType
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\WmcBundle\Element\Type;
 4: 
 5: use Symfony\Component\Form\AbstractType;
 6: use Symfony\Component\Form\FormBuilderInterface;
 7: use Symfony\Component\OptionsResolver\OptionsResolverInterface;
 8: 
 9: /**
10:  * Description of WmcEditorAdminType
11:  *
12:  * @author Paul Schmidt
13:  */
14: class WmcEditorAdminType extends AbstractType
15: {
16:     /**
17:      * @inheritdoc
18:      */
19:     public function getName()
20:     {
21:         return 'wmceditor';
22:     }
23: 
24:     /**
25:      * @inheritdoc
26:      */
27:     public function setDefaultOptions(OptionsResolverInterface $resolver)
28:     {
29:         $resolver->setDefaults(array(
30:             'application' => null
31:         ));
32:     }
33: 
34:     /**
35:      * @inheritdoc
36:      */
37:     public function buildForm(FormBuilderInterface $builder, array $options)
38:     {
39:         $builder->add('tooltip', 'text', array('required' => false))
40:                 ->add('target', 'target_element',
41:                       array(
42:                     'element_class' => 'Mapbender\\CoreBundle\\Element\\Map',
43:                     'application' => $options['application'],
44:                     'property_path' => '[target]',
45:                     'required' => false))
46:                 ->add('autoOpen', 'checkbox',
47:                       array(
48:                     'required' => false));
49:     }
50: }
51: 
52: ?>
53: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0