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

  • MonitoringDefinitionType
  • SchedulerProfileType
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: namespace Mapbender\MonitoringBundle\Form;
 3: use Symfony\Component\Form\AbstractType;
 4: use Symfony\Component\Form\FormBuilderInterface;
 5: 
 6: /**
 7:  * Description of MonitoringDefinitionType
 8:  *
 9:  * @author apour
10:  */
11: class SchedulerProfileType extends AbstractType {
12:     
13:     protected $scheduler;
14:     
15:     public function __construct($scheduler){
16:         $this->scheduler = $scheduler;
17:     }
18:     
19:     public function getName() {
20:         return "SchedulerProfile";
21:     }
22:     
23:     public function buildForm(FormBuilderInterface $builder,array $options) {
24: //        translator = $this->get('translator');
25:         $builder->add('title', 'text', array(
26:                     'label' => 'Title',
27:                     'required'  => true))
28:                 ->add('starttime', 'time', array(
29:                     'label' => 'Start Time',
30:                     'required'  => true));
31:         $startintervalops = $this->scheduler->getStarttimeintervalOpts();
32:         $keys = array_keys($startintervalops);
33:         foreach ($keys as $key){
34:             $startintervalops[$key] = $startintervalops[$key];
35:         }
36:         $builder->add('starttimeinterval', 'choice', array(
37:                     'label' => 'Delay',
38:                     'choices' => $startintervalops,
39:                     'required'  => true));
40: //        $jobcontinuityops = $this->scheduler->getJobcontinuityOpts();
41: //        $keys = array_keys($jobcontinuityops);
42: //        foreach ($keys as $key){
43: //            $jobcontinuityops[$key] = $jobcontinuityops[$key];
44: //        }
45: //        $builder->add('jobcontinuity', 'choice', array(
46: //                    'label' => 'Estimated Job Continuity',
47: //                    'choices' => $jobcontinuityops,
48: //                    'required'  => true));
49:         $jobintervalops = $this->scheduler->getJobintervalOpts();
50:         $keys = array_keys($jobintervalops);
51:         foreach ($keys as $key){
52:             $jobintervalops[$key] = $jobintervalops[$key];
53:         }
54:         $builder->add('jobinterval', 'choice', array(
55:                     'label' => 'Delay Between The Queries',
56:                     'choices' => $jobintervalops,
57:                     'required'  => true))
58:                 ->add('current', 'checkbox', array(
59:                         'label' => 'Activated',
60:                         'required'  => false));
61:     }
62: }
63: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0