Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15446 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15446 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\CompetencyType;
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 CompetencyTypeForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new CompetencyTypeFilter());
20
 
21
 
22
        $this->add([
23
            'name' => 'name',
24
            'type' => \Laminas\Form\Element\Text::class,
25
             'attributes' => [
26
                'maxlength' 	=> 128,
27
                'id' 			=> 'name',
28
            ]
29
        ]);
30
 
31
        $this->add([
32
            'name' => 'description',
33
            'type' => \Laminas\Form\Element\Textarea::class,
34
            'attributes' => [
35
                'maxlength' 	=> 512,
36
                'rows' 	=> 5,
37
                'id'    => 'description',
38
            ]
39
        ]);
40
 
41
        $this->add([
42
            'name' => 'status',
43
            'type' => \Laminas\Form\Element\Checkbox::class,
44
            'attributes' => [
45
                'id' 			=> 'status',
46
            ],
47
            'options' => [
16766 efrain 48
                'use_hidden_element' => false,
15446 efrain 49
                'unchecked_value' => \LeadersLinked\Model\CompetencyType::STATUS_INACTIVE,
50
                'checked_value'=> \LeadersLinked\Model\CompetencyType::STATUS_ACTIVE,
51
            ]
52
        ]);
53
 
54
    }
55
}