Proyectos de Subversion LeadersLinked - Backend

Rev

Ir a la última revisión | | 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\Company;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use LeadersLinked\Mapper\SkillMapper;
10
use LeadersLinked\Model\Skill;
11
use LeadersLinked\Model\Job;
12
 
13
class JobStatusForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new JobStatusFilter());
20
 
21
        $this->add([
22
            'name' => 'status',
23
            'type' => \Laminas\Form\Element\Select::class,
24
            'attributes' => [
25
                'id' => 'status',
26
            ],
27
            'options' => [
28
                //'disable_inarray_validator' => true,
29
                'value_options' => [
30
                    Job::STATUS_ACTIVE => 'LABEL_ACTIVE',
31
                    Job::STATUS_INACTIVE => 'LABEL_INACTIVE',
32
                ]
33
            ]
34
        ]);
35
 
36
    }
37
 
38
}