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 SlideTextAddForm extends Form
18
{
19
 
20
    public function __construct()
21
    {
22
        parent::__construct();
23
        $this->setInputFilter(new SlideTextAddFilter());
24
 
25
        $this->add([
26
            'name' => 'type',
27
            'type' => \Laminas\Form\Element\Hidden::class,
28
            'attributes' => [
29
                'id'    => 'type',
30
                'value' => MicrolearningSlide::TYPE_TEXT
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
        $this->add([
43
            'name' => 'description',
44
            'type' => \Laminas\Form\Element\Textarea::class,
45
            'attributes' => [
46
                'id'    => 'description',
47
            ]
48
        ]);
49
 
50
 
51
        $this->add([
52
            'name' => 'order',
53
            'type' => \Laminas\Form\Element\Text::class,
54
            'attributes' => [
55
                'id'    => 'order',
56
            ],
57
        ]);
58
 
59
 
60
         $this->add([
61
            'name' => 'background',
62
            'type' => \Laminas\Form\Element\Hidden::class,
63
            'attributes' => [
64
                'id' => 'background',
65
            ]
66
        ]);
67
    }
68
}