Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4131 | Rev 5878 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4131 Rev 5876
Línea 20... Línea 20...
20
    /**
20
    /**
21
     * 
21
     * 
22
     * @param Adapter $adapter
22
     * @param Adapter $adapter
23
     * @param User $user
23
     * @param User $user
24
     */
24
     */
25
    public function __construct() 
25
    public function __construct()
26
    {
26
    {
27
        parent::__construct();
27
        parent::__construct();
28
        
28
 
29
        $this->setInputFilter(new ZoomAddFilter());
29
        $this->setInputFilter(new ZoomAddFilter());
30
        
30
 
31
        
31
 
32
        $this->add([
32
        $this->add([
33
            'name' => 'duration',
33
            'name' => 'duration',
34
            'type' => \Laminas\Form\Element\Select::class,
34
            'type' => \Laminas\Form\Element\Select::class,
35
            'options' => [
35
            'options' => [
36
                'value_options' => [
36
                'value_options' => [
Línea 41... Línea 41...
41
                    25 => 'LABEL_25_MINUTES',
41
                    25 => 'LABEL_25_MINUTES',
42
                    30 => 'LABEL_30_MINUTES',
42
                    30 => 'LABEL_30_MINUTES',
43
                    35 => 'LABEL_35_MINUTES',
43
                    35 => 'LABEL_35_MINUTES',
44
                    40 => 'LABEL_40_MINUTES',
44
                    40 => 'LABEL_40_MINUTES',
45
                    45 => 'LABEL_45_MINUTES',
45
                    45 => 'LABEL_45_MINUTES',
-
 
46
                    120 => 'LABEL_120_MINUTES',
Línea 46... Línea 47...
46
 
47
 
47
                ]
48
                ]
48
            ],
49
            ],
49
            'attributes' => [
50
            'attributes' => [
50
                'id' => 'duration',
51
                'id' => 'duration',
51
            ]
52
            ]
52
        ]);
53
        ]);
53
        
54
 
54
        $this->add([
55
        $this->add([
55
            'name' => 'password',
56
            'name' => 'password',
56
            'type' => \Laminas\Form\Element\Text::class,
57
            'type' => \Laminas\Form\Element\Text::class,
57
            'attributes' => [
58
            'attributes' => [
58
                'maxlength' 	=> 6,
59
                'maxlength'     => 6,
59
                'id' 			=> 'password',
60
                'id'             => 'password',
60
            ]
61
            ]
61
        ]);
62
        ]);
62
        
63
 
63
        $this->add([
64
        $this->add([
64
            'name' => 'type',
65
            'name' => 'type',
65
            'type' => \Laminas\Form\Element\Select::class,
66
            'type' => \Laminas\Form\Element\Select::class,
66
            'options' => [
67
            'options' => [
Línea 71... Línea 72...
71
            ],
72
            ],
72
            'attributes' => [
73
            'attributes' => [
73
                'id' => 'type',
74
                'id' => 'type',
74
            ]
75
            ]
75
        ]);
76
        ]);
76
        
77
 
77
        $this->add([
78
        $this->add([
78
            'name' => 'title',
79
            'name' => 'title',
79
            'type' => \Laminas\Form\Element\Text::class,
80
            'type' => \Laminas\Form\Element\Text::class,
80
            'attributes' => [
81
            'attributes' => [
81
                'maxlength' 	=> 128,
82
                'maxlength'     => 128,
82
                'id' 			=> 'title',
83
                'id'             => 'title',
83
            ]
84
            ]
84
        ]);
85
        ]);
85
        
86
 
86
        $this->add([
87
        $this->add([
87
            'name' => 'description',
88
            'name' => 'description',
88
            'type' => \Laminas\Form\Element\Textarea::class,
89
            'type' => \Laminas\Form\Element\Textarea::class,
89
            'attributes' => [
90
            'attributes' => [
90
                'id' 			=> 'description',
91
                'id'             => 'description',
91
            ]
92
            ]
92
        ]);
93
        ]);
93
        
94
 
94
        $this->add([
95
        $this->add([
95
            'name' => 'date',
96
            'name' => 'date',
96
            'type' => \Laminas\Form\Element\Text::class,
97
            'type' => \Laminas\Form\Element\Text::class,
97
            'attributes' => [
98
            'attributes' => [
98
                'maxlength' 	=> 10,
99
                'maxlength'     => 10,
99
                'id' 			=> 'date',
100
                'id'             => 'date',
100
            ]
101
            ]
101
        ]);
102
        ]);
102
        
103
 
103
        $this->add([
104
        $this->add([
104
            'name' => 'time',
105
            'name' => 'time',
105
            'type' => \Laminas\Form\Element\Text::class,
106
            'type' => \Laminas\Form\Element\Text::class,
106
            'attributes' => [
107
            'attributes' => [
107
                'maxlength' 	=> 10,
108
                'maxlength'     => 10,
108
                'id' 			=> 'time',
109
                'id'             => 'time',
109
            ]
110
            ]
110
        ]);
111
        ]);
111
 
-
 
112
  
-
 
113
 
-
 
114
 
-
 
115
        
-
 
116
 
-
 
117
        
-
 
118
    }
112
    }
Línea 119... Línea 113...
119
 
113
 
120
    
114
 
121
    /**
115
    /**
122
     * 
116
     * 
123
     * @return array
117
     * @return array
124
     */
118
     */
125
    private function optionsTimezone()
119
    private function optionsTimezone()
126
    {
120
    {
127
       
121
 
128
        $records = Functions::getAllTimeZones();
122
        $records = Functions::getAllTimeZones();
129
        
123
 
130
        $items = [];
124
        $items = [];
131
        foreach($records as $record)
-
 
132
        {
125
        foreach ($records as $record) {
133
            $items[$record] = $record;
126
            $items[$record] = $record;
134
        }
127
        }
135
        
128
 
136
        return $items;
129
        return $items;
137
    }
-
 
138
    
-
 
139
 
-
 
140
 
-
 
141
}
130
    }
-
 
131
}