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
 
15
class TopicEditForm extends Form
16
{
17
 
18
    public function __construct()
19
    {
20
        parent::__construct();
21
        $this->setInputFilter(new TopicEditFilter());
22
 
23
 
24
 
25
        $this->add([
26
            'name' => 'name',
27
            'type' => \Laminas\Form\Element\Textarea::class,
28
            'attributes' => [
29
                'id'    => 'name',
30
            ]
31
        ]);
32
 
33
        $this->add([
34
            'name' => 'description',
35
            'type' => \Laminas\Form\Element\Textarea::class,
36
            'attributes' => [
37
                'id'    => 'description',
38
            ]
39
        ]);
40
 
41
        $this->add([
42
            'name' => 'order',
43
            'type' => \Laminas\Form\Element\Text::class,
44
            'attributes' => [
45
                'id'    => 'order',
46
            ],
47
        ]);
48
 
49
        $this->add([
50
            'name' => 'file',
51
            'type' => \Laminas\Form\Element\Hidden::class,
52
            'attributes' => [
53
                'id' => 'file',
54
            ]
55
        ]);
56
 
57
 
58
 
59
        $this->add([
60
            'name' => 'status',
61
            'type' => \Laminas\Form\Element\Select::class,
62
            'options' => [
63
                'empty_option' => 'LABEL_STATUS',
64
                'value_options' => [
65
                    MicrolearningTopic::STATUS_ACTIVE => 'LABEL_ACTIVE',
66
                    MicrolearningTopic::STATUS_INACTIVE => 'LABEL_INACTIVE',
67
                ],
68
            ],
69
            'attributes' => [
70
                'id' => 'status',
71
            ]
72
        ]);
73
 
74
 
75
 
76
    }
77
}