Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17002 efrain 1
<?php
2
declare(strict_types=1);
3
 
4
namespace LeadersLinked\Form\Network;
5
 
6
use Laminas\Form\Form;
7
 
8
 
9
class NetworkXmppForm extends Form
10
{
11
 
12
 
13
    public function __construct()
14
    {
15
 
16
        parent::__construct();
17
        $this->setInputFilter(new NetworkEditFilter());
18
 
19
 
20
        $this->add([
21
            'name' => 'xmpp_domain',
22
            'type' => \Laminas\Form\Element\Text::class,
23
             'attributes' => [
24
                'maxlength' 	=> 25,
25
                'id' 			=> 'xmpp_domain',
26
            ]
27
         ]);
28
 
29
        $this->add([
30
            'name' => 'xmpp_hostname',
31
            'type' => \Laminas\Form\Element\Text::class,
32
            'attributes' => [
33
                'maxlength' 	=> 250,
34
                'id' 			=> 'xmpp_hostname',
35
            ]
36
        ]);
37
 
38
        $this->add([
39
            'name' => 'xmpp_port',
40
            'type' => \Laminas\Form\Element\Text::class,
41
            'attributes' => [
42
                'maxlength' 	=> 5,
43
                'id' 			=> 'xmpp_port',
44
            ]
45
        ]);
46
 
47
 
48
 
49
        $this->add([
50
            'name' => 'xmpp_admin_port',
51
            'type' => \Laminas\Form\Element\Text::class,
52
            'attributes' => [
53
                'maxlength' 	=> 5,
54
                'id' 			=> 'xmpp_admin_port',
55
            ]
56
        ]);
57
 
58
 
59
 
60
 
61
    }
62
 
63
}