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 SlideTextEditForm extends Form
11
{
12
 
13
    public function __construct()
14
    {
15
        parent::__construct();
16
        $this->setInputFilter(new SlideTextEditFilter());
17
 
18
        $this->add([
19
            'name' => 'type',
20
            'type' => \Laminas\Form\Element\Hidden::class,
21
            'attributes' => [
22
                'id'    => 'type',
23
                'value' => MicrolearningSlide::TYPE_TEXT
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
        $this->add([
36
            'name' => 'description',
37
            'type' => \Laminas\Form\Element\Textarea::class,
38
            'attributes' => [
39
                'id'    => 'description',
40
            ]
41
        ]);
42
 
43
 
44
 
45
        $this->add([
46
            'name' => 'order',
47
            'type' => \Laminas\Form\Element\Text::class,
48
            'attributes' => [
49
                'id'    => 'order',
50
            ],
51
        ]);
52
 
53
        $this->add([
54
            'name' => 'background',
55
            'type' => \Laminas\Form\Element\File::class,
56
             'attributes' => [
57
                'id' => 'background',
58
            ]
59
         ]);
60
 
61
    }
62
}