Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
1323 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Service;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use Laminas\Log\LoggerInterface;
10
use LeadersLinked\Mapper\CompanySizeMapper;
11
use LeadersLinked\Mapper\IndustryMapper;
12
use LeadersLinked\Model\Feed;
13
 
14
class CapsuleCommentForm extends Form
15
{
16
 
17
    public function __construct()
18
    {
19
        parent::__construct();
20
        $this->setInputFilter(new CapsuleCommentFilter());
21
 
22
        $this->add([
23
            'name' => 'comment',
24
            'type' => \Laminas\Form\Element\Textarea::class,
25
            'attributes' => [
26
                'id'    => 'comment',
27
            ]
28
        ]);
29
 
30
 
31
        $this->add([
32
            'name' => 'rating',
33
            'type' => \Laminas\Form\Element\Text::class,
34
            'attributes' => [
35
                'id'    => 'rating',
36
            ],
37
        ]);
1662 efrain 38
 
39
        $this->add([
40
            'name' => 'added_on',
41
            'type' => \Laminas\Form\Element\Text::class,
42
            'attributes' => [
43
                'id'    => 'added_on',
44
            ],
45
        ]);
1323 efrain 46
    }
47
}