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
 
Línea 7... Línea -...
7
use Laminas\Form\Form;
-
 
8
 
5
use Laminas\Form\Form;
9
 
6
 
-
 
7
class CoverForm extends Form
10
class CoverForm extends Form
8
{
11
{
9
 
12
    /**
10
    /**
13
     * 
11
     *
14
     * @param array $config
12
     * @param array $config
15
     */
13
     */
16
    public function __construct($config) 
14
    public function __construct($config)
17
    {
15
    {
Línea 18... Línea 16...
18
        parent::__construct();
16
        parent::__construct();
19
        $this->setInputFilter(new CoverFilter($config));
17
        $this->setInputFilter(new CoverFilter($config));
20
 
18
 
21
        $this->add([
19
        $this->add([
22
            'name' => 'cover',
20
            'name' => 'cover',
23
            'type' => \Laminas\Form\Element\File::class,
21
            'type' => \Laminas\Form\Element\File::class,
24
             'attributes' => [
22
            'attributes' => [
25
                'id' => 'cover',
-
 
26
            ]
23
                'id' => 'cover'
27
         ]);
24
            ]