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 SlideImageAddForm extends Form
11
{
12
 
13
    public function __construct()
14
    {
15
        parent::__construct();
16
        $this->setInputFilter(new SlideImageAddFilter());
17
 
18
        $this->add([
19
            'name' => 'type',
20
            'type' => \Laminas\Form\Element\Hidden::class,
21
            'attributes' => [
22
                'id'    => 'type',
23
                'value' => MicrolearningSlide::TYPE_IMAGE
24
            ]
25
        ]);
26
 
27
        $this->add([
28
            'name' => 'name',
29
            'type' => \Laminas\Form\Element\Textarea::class,
30
            'attributes' => [
31
                'id'    => 'name',
32
            ]
33
        ]);
34
 
35
 
36
 
37
        $this->add([
38
            'name' => 'order',
39
            'type' => \Laminas\Form\Element\Text::class,
40
            'attributes' => [
41
                'id'    => 'order',
42
            ],
43
        ]);
44
 
45
        $this->add([
46
            'name' => 'file',
47
            'type' => \Laminas\Form\Element\Hidden::class,
48
            'attributes' => [
49
                'id' => 'file',
50
            ]
51
        ]);
52
 
53
    }
54
}