Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17002 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Microlearning;
6
 
7
use Laminas\Form\Form;
8
use LeadersLinked\Model\MicrolearningSlide;
9
 
10
class SlideAudioAddForm extends Form
11
{
12
    public function __construct()
13
    {
14
        parent::__construct();
15
        $this->setInputFilter(new SlideAudioAddFilter());
16
 
17
        $this->add([
18
            'name' => 'type',
19
            'type' => \Laminas\Form\Element\Hidden::class,
20
            'attributes' => [
21
                'id'    => 'type',
22
                'value' => MicrolearningSlide::TYPE_AUDIO
23
            ]
24
        ]);
25
 
26
        $this->add([
27
            'name' => 'name',
28
            'type' => \Laminas\Form\Element\Textarea::class,
29
            'attributes' => [
30
                'id'    => 'name',
31
            ]
32
        ]);
33
 
34
 
35
        $this->add([
36
            'name' => 'order',
37
            'type' => \Laminas\Form\Element\Text::class,
38
            'attributes' => [
39
                'id'    => 'order',
40
            ],
41
        ]);
42
 
43
        $this->add([
44
            'name' => 'file',
45
            'type' => \Laminas\Form\Element\File::class,
46
             'attributes' => [
47
                'id' => 'file',
48
            ]
49
         ]);
50
 
51
         $this->add([
52
            'name' => 'background',
53
            'type' => \Laminas\Form\Element\Hidden::class,
54
            'attributes' => [
55
                'id' => 'background',
56
            ]
57
        ]);
58
 
59
    }
60
}