Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15341 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form;
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 NetworkEditForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
 
19
        parent::__construct();
20
        $this->setInputFilter(new NetworkEditFilter());
21
 
22
 
23
        $this->add([
24
            'name' => 'name',
25
            'type' => \Laminas\Form\Element\Text::class,
26
             'attributes' => [
27
                'maxlength' 	=> 128,
28
                'id' 			=> 'name',
29
            ]
30
         ]);
31
 
32
        $this->add([
33
            'name' => 'main_hostname',
34
            'type' => \Laminas\Form\Element\Text::class,
35
            'attributes' => [
36
                'maxlength' 	=> 250,
37
                'id' 			=> 'main_hostname',
38
            ]
39
        ]);
40
 
41
        $this->add([
42
            'name' => 'admin_hostname',
43
            'type' => \Laminas\Form\Element\Text::class,
44
            'attributes' => [
45
                'maxlength' 	=> 250,
46
                'id' 			=> 'admin_hostname',
47
            ]
48
        ]);
49
 
50
        $this->add([
51
            'name' => 'status',
52
            'type' => \Laminas\Form\Element\Checkbox::class,
53
            'attributes' => [
54
                'id' 			=> 'status',
55
            ],
56
            'options' => [
57
                'use_hidden_element' => 0,
58
                'unchecked_value' => \LeadersLinked\Model\Network::STATUS_INACTIVE,
59
                'checked_value'=> \LeadersLinked\Model\Network::STATUS_ACTIVE,
60
            ]
61
        ]);
62
    }
63
 
64
 
65
 
66
}