Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

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