Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 345
Línea 1... Línea 1...
1
<?php
1
<?php
2
 
-
 
3
declare(strict_types=1);
2
declare(strict_types = 1);
4
 
-
 
5
namespace LeadersLinked\Form\UserProfile;
3
namespace LeadersLinked\Form\UserProfile;
Línea 6... Línea 4...
6
 
4
 
7
use Laminas\Form\Form;
5
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
6
use Laminas\Db\Adapter\AdapterInterface;
Línea 9... Línea 7...
9
use LeadersLinked\Mapper\SkillMapper;
7
use LeadersLinked\Mapper\SkillMapper;
10
 
8
 
-
 
9
class SocialNetworkForm extends Form
11
class SocialNetworkForm extends Form
10
{
12
{
11
 
13
    public function __construct() 
12
    public function __construct()
14
    {
13
    {
Línea 15... Línea -...
15
        parent::__construct();
-
 
16
        $this->setInputFilter(new SocialNetworkFilter());
14
        parent::__construct();
17
 
15
        $this->setInputFilter(new SocialNetworkFilter());
18
        
16
 
19
        $this->add([
17
        $this->add([
20
            'name' => 'facebook',
18
            'name' => 'facebook',
21
            'type' => \Laminas\Form\Element\Text::class,
19
            'type' => \Laminas\Form\Element\Text::class,
22
            'attributes' => [
20
            'attributes' => [
23
                'maxlength' 	=> 250,
21
                'maxlength' => 250,
24
                'id' 			=> 'facebook',
22
                'id' => 'facebook'
25
            ]
23
            ]
26
        ]);
24
        ]);
27
        
25
 
28
        $this->add([
26
        $this->add([
29
            'name' => 'twitter',
27
            'name' => 'twitter',
30
            'type' => \Laminas\Form\Element\Text::class,
28
            'type' => \Laminas\Form\Element\Text::class,
31
            'attributes' => [
29
            'attributes' => [
32
                'maxlength' 	=> 250,
30
                'maxlength' => 250,
33
                'id' 			=> 'twitter',
31
                'id' => 'twitter'
34
            ]
32
            ]
35
        ]);
33
        ]);
36
        
34
 
37
        $this->add([
35
        $this->add([
38
            'name' => 'instagram',
36
            'name' => 'instagram',
39
            'type' => \Laminas\Form\Element\Text::class,
37
            'type' => \Laminas\Form\Element\Text::class,
40
            'attributes' => [
38
            'attributes' => [
41
                'maxlength' 	=> 250,
39
                'maxlength' => 250,
42
                'id' 			=> 'instagram',
-
 
43
            ]
40
                'id' => 'instagram'
44
        ]);
-
 
45
        
41
            ]
46
    }
42
        ]);