Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | | 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\Behavior;
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 BehaviorForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new BehaviorFilter());
20
 
21
 
22
        $this->add([
23
            'name' => 'description',
24
            'type' => \Laminas\Form\Element\Textarea::class,
25
            'attributes' => [
26
                'id'    => 'description',
27
            ]
28
        ]);
29
 
30
        $this->add([
31
            'name' => 'status',
32
            'type' => \Laminas\Form\Element\Checkbox::class,
33
            'attributes' => [
34
                'id' 			=> 'status',
35
            ],
36
            'options' => [
16766 efrain 37
                'use_hidden_element' => false,
15446 efrain 38
                'unchecked_value' => \LeadersLinked\Model\Behavior::STATUS_INACTIVE,
39
                'checked_value'=> \LeadersLinked\Model\Behavior::STATUS_ACTIVE,
40
            ]
41
        ]);
42
 
43
 
44
    }
45
}