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\Degree;
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
 
13
class DegreeForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new DegreeFilter());
20
 
21
 
22
        $this->add([
23
            'name' => 'name',
24
            'type' => \Laminas\Form\Element\Text::class,
25
             'attributes' => [
26
                'maxlength' 	=> 64,
27
                'id' 			=> 'name',
28
            ]
29
        ]);
30
 
31
        $this->add([
32
            'name' => 'description',
33
            'type' => \Laminas\Form\Element\Textarea::class,
34
            'attributes' => [
35
                'id'    => 'description',
36
            ]
37
        ]);
38
 
39
        $this->add([
40
            'name' => 'status',
41
            'type' => \Laminas\Form\Element\Checkbox::class,
42
            'attributes' => [
43
                'id' 			=> 'status',
44
            ],
45
            'options' => [
46
                'use_hidden_element' => false,
47
                'unchecked_value' => \LeadersLinked\Model\Degree::STATUS_INACTIVE,
48
                'checked_value'=> \LeadersLinked\Model\Degree::STATUS_ACTIVE,
49
            ]
50
        ]);
51
 
52
 
53
    }
54
}