Rev 17002 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Form\Job;
use Laminas\Form\Form;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Log\LoggerInterface;
use LeadersLinked\Mapper\CompanySizeMapper;
use LeadersLinked\Mapper\IndustryMapper;
use LeadersLinked\Mapper\JobCategoryMapper;
use LeadersLinked\Model\Job;
class JobEmploymentTypeForm extends Form
{
public function __construct()
{
parent::__construct();
$this->setInputFilter(new JobEmploymentTypeFilter());
$this->add([
'name' => 'employment_type',
'type' => \Laminas\Form\Element\Select::class,
'options' => [
'value_options' => [
Job::EMPLOYMENT_TYPE_FULL_TIME => 'LABEL_EMPLOYMENT_TYPE_FULL_TIME',
Job::EMPLOYMENT_TYPE_PART_TIME => 'LABEL_EMPLOYMENT_TYPE_PART_TIME',
Job::EMPLOYMENT_TYPE_CONTRACT => 'LABEL_EMPLOYMENT_TYPE_CONTRACT',
Job::EMPLOYMENT_TYPE_TEMPORARY => 'LABEL_EMPLOYMENT_TYPE_TEMPORARY',
]
],
'attributes' => [
'id' => 'employment_type',
]
]);
}
}