Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Feed;
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 ShareForm extends Form
15
{
16
 
17
    public function __construct()
18
    {
19
        parent::__construct();
20
        $this->setInputFilter(new ShareFilter());
21
 
22
        $this->add([
23
            'name' => 'posted_or_shared',
24
            'type' => \Laminas\Form\Element\Hidden::class,
25
            'attributes' => [
26
                'id' => 'posted_or_shared',
27
                'value' => Feed::SHARED
28
            ]
29
        ]);
30
 
31
        $this->add([
32
            'name' => 'shared_with',
33
            'type' => \Laminas\Form\Element\Select::class,
34
            'options' => [
35
                'value_options' =>  [
36
                    Feed::SHARE_WITH_CONNECTIONS => 'LABEL_CONNECTIONS',
37
                    Feed::SHARE_WITH_PUBLIC => 'LABEL_PUBLIC'
38
                ],
39
            ],
40
            'attributes' => [
41
                'id' => 'shared_with',
42
            ]
43
        ]);
44
 
45
        $this->add([
46
            'name' => 'description',
47
            'type' => \Laminas\Form\Element\Textarea::class,
48
            'attributes' => [
49
                'id'    => 'description',
50
            ]
51
        ]);
52
    }
53
}