Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17348 stevensc 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Form\Element\Select;
9
use Laminas\Db\Adapter\AdapterInterface;
10
 
11
class TopicCapsuleForm extends Form
12
{
13
 
14
    /**
15
     *
16
     * @param AdapterInterface $adapter
17
     * @param int $company_id
18
     * @param int $topic_id
19
     */
20
    public function __construct($adapter, $company_id, $topic_id = 0)
21
    {
22
        parent::__construct();
23
        $this->setInputFilter(new TopicCapsuleFilter($adapter));
24
 
25
        $this->add([
26
            'name' => 'topic_uuid',
27
            'type' => Select::class,
28
            'attributes' => [
29
                'id' => 'topic_uuid',
30
            ],
31
            'options' => [
32
                'value_options' => []
33
            ]
34
        ]);
35
 
36
        $this->add([
37
            'name' => 'capsule_uuid',
38
            'type' => Select::class,
39
            'attributes' => [
40
                'id' => 'capsule_uuid',
41
            ],
42
            'options' => [
43
                'value_options' => []
44
            ]
45
        ]);
46
    }
47
 
48
 
49
}