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

  • WmcHandlerAdminType
  • 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 WmcHandlerAdminType extends AbstractType
15: {
16: 
17:     /**
18:      * @inheritdoc
19:      */
20:     public function getName()
21:     {
22:         return 'wmchandler';
23:     }
24: 
25:     /**
26:      * @inheritdoc
27:      */
28:     public function setDefaultOptions(OptionsResolverInterface $resolver)
29:     {
30:         $resolver->setDefaults(array(
31:             'application' => null
32:         ));
33:     }
34: 
35:     /**
36:      * @inheritdoc
37:      */
38:     public function buildForm(FormBuilderInterface $builder, array $options)
39:     {
40:         $builder->add('tooltip', 'text', array('required' => false))
41:                 ->add('target', 'target_element',
42:                         array(
43:                     'element_class' => 'Mapbender\\CoreBundle\\Element\\Map',
44:                     'application'   => $options['application'],
45:                     'property_path' => '[target]',
46:                     'required'      => false))
47:                 ->add('accessRoles', 'choice',
48:                         array(
49:                     'choices'  => array(),
50:                     'required' => false))
51:                 ->add('keepBaseSources', 'checkbox',
52:                         array(
53:                     'required' => false))
54:                 ->add('useEditor', 'checkbox',
55:                         array(
56:                     'required' => false))
57:                 ->add('useSuggestMap', 'checkbox',
58:                         array(
59:                     'required' => false))
60:                 ->add('receiver', 'choice',
61:                         array(
62:                     'multiple' => true,
63:                     'required' => false,
64:                     'choices'  => array(
65:                         'email'    => 'e-mail',
66:                         'facebook' => 'facebook',
67:                         'twitter'  => 'twitter')))
68:                 ->add('useLoader', 'checkbox',
69:                         array(
70:                     'required' => false))
71:         ;
72:     }
73: 
74: }
75: 
76: ?>
77: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0