Proyectos de Subversion LeadersLinked - Backend

Rev

Autoría | Ultima modificación | Ver Log |

<?php

declare(strict_types=1);

namespace LeadersLinked\Form\CompanySize;

use Laminas\Form\Form;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Log\LoggerInterface;
use LeadersLinked\Mapper\CompanySizeMapper;
use LeadersLinked\Mapper\IndustryMapper;

class CompanySizeForm extends Form
{

    public function __construct() 
    {
        parent::__construct();
        $this->setInputFilter(new CompanySizeFilter());
        

        $this->add([
            'name' => 'name',
            'type' => \Laminas\Form\Element\Text::class,
             'attributes' => [
                'maxlength'     => 64,
                'id'                    => 'name',
            ]
         ]);
         $this->add([
            'name' => 'minimum_no_of_employee',
            'type' => \Laminas\Form\Element\Text::class,
            'attributes' => [
                'maxlength'     => 10,
                'id'                    => 'minimum_no_of_employee',
            ]
        ]);
         $this->add([
             'name' => 'maximum_no_of_employee',
             'type' => \Laminas\Form\Element\Text::class,
             'attributes' => [
                 'maxlength'    => 10,
                 'id'                   => 'maximum_no_of_employee',
             ]
         ]);
         
         $this->add([
             'name' => 'status',
             'type' => \Laminas\Form\Element\Checkbox::class,
             'attributes' => [
                 'id'                   => 'status',
             ],
             'options' => [
                 'use_hidden_element' => false,
                 'unchecked_value' => \LeadersLinked\Model\CompanySize::STATUS_INACTIVE,
                 'checked_value'=> \LeadersLinked\Model\CompanySize::STATUS_ACTIVE,
             ]
         ]);

    }
}