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

  • AboutDialogAdminType
  • ActivityIndicatorAdminType
  • ButtonAdminType
  • CoordinatesDisplayAdminType
  • CopyrightAdminType
  • FeatureInfoAdminType
  • GpsPositionAdminType
  • LayertreeAdminType
  • LegendAdminType
  • MapAdminType
  • OverviewAdminType
  • PrintClientAdminType
  • PrintClientQualityAdminType
  • PrintClientTemplateAdminType
  • RulerAdminType
  • ScaleBarAdminType
  • ScaleDisplayAdminType
  • ScaleSelectorAdminType
  • SearchRouterFormType
  • SearchRouterSelectType
  • SrsSelectorAdminType
  • TargetElementType
  • ZoomBarAdminType
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\CoreBundle\Element\Type;
 4: 
 5: use Symfony\Component\Form\AbstractType;
 6: use Symfony\Component\Form\FormBuilderInterface;
 7: use Symfony\Component\OptionsResolver\OptionsResolverInterface;
 8: 
 9: /**
10:  * 
11:  */
12: class ScaleSelectorAdminType extends AbstractType
13: {
14: 
15:     /**
16:      * @inheritdoc
17:      */
18:     public function getName()
19:     {
20:         return 'scaleselector';
21:     }
22: 
23:     /**
24:      * @inheritdoc
25:      */
26:     public function setDefaultOptions(OptionsResolverInterface $resolver)
27:     {
28:         $resolver->setDefaults(array(
29:             'application' => null,
30: //            'target' => 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('label', 'checkbox', 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:     }
48: 
49: }
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0