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\JobCategory;
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 JobCategoryForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new JobCategoryFilter());
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
 
40
        $this->add([
41
            'name' => 'status',
42
            'type' => \Laminas\Form\Element\Checkbox::class,
43
            'attributes' => [
44
                'id' 			=> 'status',
45
            ],
46
            'options' => [
47
                'use_hidden_element' => false,
48
                'unchecked_value' => \LeadersLinked\Model\JobCategory::STATUS_INACTIVE,
49
                'checked_value'=> \LeadersLinked\Model\JobCategory::STATUS_ACTIVE,
50
            ]
51
        ]);
52
    }
53
}