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 Laminas\Db\Adapter\AdapterInterface;
9
use Laminas\Log\LoggerInterface;
10
use LeadersLinked\Mapper\CompanySizeMapper;
11
use LeadersLinked\Mapper\IndustryMapper;
12
use LeadersLinked\Model\Feed;
13
use LeadersLinked\Model\MicrolearningTopic;
14
use LeadersLinked\Model\MicrolearningCapsule;
15
use LeadersLinked\Model\MicrolearningSlide;
16
 
17
class SlideVideoAddForm extends Form
18
{
19
 
20
    public function __construct()
21
    {
22
        parent::__construct();
23
        $this->setInputFilter(new SlideVideoAddFilter());
24
 
25
        $this->add([
26
            'name' => 'type',
27
            'type' => \Laminas\Form\Element\Hidden::class,
28
            'attributes' => [
29
                'id'    => 'type',
30
                'value' => MicrolearningSlide::TYPE_VIDEO
31
            ]
32
        ]);
33
 
34
        $this->add([
35
            'name' => 'name',
36
            'type' => \Laminas\Form\Element\Textarea::class,
37
            'attributes' => [
38
                'id'    => 'name',
39
            ]
40
        ]);
41
 
42
 
43
        $this->add([
44
            'name' => 'order',
45
            'type' => \Laminas\Form\Element\Text::class,
46
            'attributes' => [
47
                'id'    => 'order',
48
            ],
49
        ]);
50
 
51
        $this->add([
52
            'name' => 'file',
53
            'type' => \Laminas\Form\Element\File::class,
54
             'attributes' => [
55
                'id' => 'file',
56
            ]
57
         ]);
58
 
59
        $this->add([
60
            'name' => 'background',
61
            'type' => \Laminas\Form\Element\Hidden::class,
62
            'attributes' => [
63
                'id' => 'background',
64
            ]
65
        ]);
66
 
67
    }
68
}