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: use Mapbender\CoreBundle\Form\Type\PositionType;
 9: 
10: /**
11:  * 
12:  */
13: class CopyrightAdminType extends AbstractType
14: {
15: 
16:     /**
17:      * @inheritdoc
18:      */
19:     public function getName()
20:     {
21:         return 'copyright';
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('width', 'text', array('required' => true))
41:                 ->add('anchor', "choice",
42:                       array(
43:                     'required' => true,
44:                     "choices" => array(
45:                         'left-top' => 'left-top',
46:                         'left-bottom' => 'left-bottom',
47:                         'right-top' => 'right-top',
48:                         'right-bottom' => 'right-bottom')))
49:                 ->add('copyright_text', 'text', array('required' => false))
50:                 ->add('copyright_link', 'text', array('required' => false))
51:                 ->add('link_type', 'choice', array(
52:                     'choices' => array('' => ' ','dialog' => 'dialog', 'url' => 'url'),
53:                     'required' => false))
54:                 ->add('link_url', 'text', array('required' => false))
55:                 ->add('dialog_content', 'textarea', array('required' => false))
56:                 ->add('dialog_title', 'text', array('required' => false));
57:     }
58: 
59: }
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0