Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
9334 eleazar 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use Laminas\Log\LoggerInterface;
10
 
11
class MyTrainerCategoriesForm extends Form
12
{
13
 
14
    public function __construct()
15
    {
16
        parent::__construct();
17
        $this->setInputFilter(new MyTrainerCategoriesFilter());
18
 
19
 
20
        $this->add([
21
            'name' => 'title',
22
            'type' => \Laminas\Form\Element\Text::class,
23
             'attributes' => [
24
                'id' 			=> 'title',
25
            ]
26
        ]);
27
 
28
        $this->add([
29
            'name' => 'text',
30
            'type' => \Laminas\Form\Element\Textarea::class,
31
            'attributes' => [
32
                'id'    => 'text',
33
            ]
34
        ]);
35
 
36
 
37
    }
38
}