Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17002 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Media;
6
 
7
use Laminas\Form\Form;
8
 
9
 
10
class FileForm extends Form
11
{
12
 
13
    public function __construct()
14
    {
15
        parent::__construct();
16
        $this->setInputFilter(new FileFilter());
17
 
18
        $this->add([
19
            'name' => 'name',
20
            'type' => \Laminas\Form\Element\Text::class,
21
            'attributes' => [
22
                'maxlength' 	=> 100,
23
                'id' 			=> 'title',
24
            ]
25
        ]);
26
 
27
        $this->add([
28
            'name' => 'file',
29
            'type' => \Laminas\Form\Element\File::class,
30
             'attributes' => [
31
                'id' => 'file',
32
            ]
33
         ]);
34
    }
35
}