Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17008 | | Comparar con el anterior | 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\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\Mapper\TopicMapper;
13
use LeadersLinked\Model\Feed;
14
use Laminas\Form\Element;
15
 
16
class CreateFeedForm extends Form
17
{
18
 
19
    public function __construct()
20
    {
21
        parent::__construct();
22
        $this->setInputFilter(new CreateFeedFilter());
23
 
24
 
25
        $this->add([
26
            'name' => 'description',
27
            'type' => \Laminas\Form\Element\Textarea::class,
28
            'attributes' => [
29
                'id'    => 'description',
30
            ]
31
        ]);
32
 
17012 efrain 33
 
34
 
35
 
17002 efrain 36
        $this->add([
37
            'name' => 'file',
38
            'type' => \Laminas\Form\Element\File::class,
39
             'attributes' => [
40
                'id' => 'file',
41
            ]
42
         ]);
17008 efrain 43
 
44
 
45
 
46
 
47
        $this->add([
48
            'name' => 'scheduled_active',
49
            'type' => \Laminas\Form\Element\Checkbox::class,
50
            'attributes' => [
51
                'id' => 'scheduled_active',
52
            ],
53
            'options' => [
54
                'use_hidden_element' => false,
55
                'unchecked_value' => '0',
56
                'checked_value' => '1',
57
            ]
58
        ]);
59
 
60
 
61
        $this->add([
62
            'name' => 'scheduled_timestamp',
63
            'type' => \Laminas\Form\Element\Text::class,
64
            'attributes' => [
65
                'id' => 'scheduled_timestamp',
66
                'maxlength' => 20
67
            ],
68
 
69
        ]);
70
 
71
 
72
        $this->add([
73
            'name' => 'notification_active',
74
            'type' => \Laminas\Form\Element\Checkbox::class,
75
            'attributes' => [
76
                'id' => 'notification_active',
77
            ],
78
            'options' => [
79
                'use_hidden_element' => false,
80
                'unchecked_value' => '0',
81
                'checked_value' => '1',
82
            ]
83
        ]);
84
 
85
        $this->add([
86
            'name' => 'notification_custom_active',
87
            'type' => \Laminas\Form\Element\Checkbox::class,
88
            'attributes' => [
89
                'id' => 'notification_custom_active',
90
            ],
91
            'options' => [
92
                'use_hidden_element' => false,
93
                'unchecked_value' => '0',
94
                'checked_value' => '1',
95
            ]
96
        ]);
97
 
98
        $this->add([
99
            'name' => 'notification_custom_title',
100
            'type' => \Laminas\Form\Element\Text::class,
101
            'attributes' => [
102
                'id'    => 'notification_custom_title',
103
                'maxlength' => 50,
104
            ]
105
        ]);
106
 
107
        $this->add([
108
            'name' => 'notification_custom_description',
109
            'type' => \Laminas\Form\Element\Textarea::class,
110
            'attributes' => [
111
                'id'    => 'notification_custom_description',
112
            ]
113
        ]);
17002 efrain 114
 
115
 
116
 
117
    }
118
 
119
 
120
 
121
}