Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6750 | | Comparar con el anterior | 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\AccountSetting;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use LeadersLinked\Mapper\IndustryMapper;
10
use LeadersLinked\Mapper\CompanySizeMapper;
11
 
12
class NotificationSettingForm extends Form
13
{
14
    /**
15
     *
16
     * @param AdapterInterface $adapter
17
     */
18
    public function __construct()
19
    {
20
        parent::__construct();
21
 
22
        $this->setInputFilter(new NotificationSettingFilter());
23
 
24
        $this->add([
25
            'name' => 'receive_connection_request',
26
            'type' => \Laminas\Form\Element\Checkbox::class,
27
            'attributes' => [
28
                'id' => 'receive_connection_request',
29
            ],
30
            'options' => [
6752 efrain 31
                'use_hidden_element' => false,
1 www 32
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
33
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
34
            ]
35
        ]);
36
 
37
 
38
        $this->add([
39
            'name' => 'accept_my_request_connection',
40
            'type' => \Laminas\Form\Element\Checkbox::class,
41
            'attributes' => [
42
                'id' => 'accept_my_request_connection',
43
            ],
44
            'options' => [
6752 efrain 45
                'use_hidden_element' => false,
1 www 46
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
47
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
48
            ]
49
        ]);
50
 
51
 
52
        $this->add([
53
            'name' => 'receive_invitation_group',
54
            'type' => \Laminas\Form\Element\Checkbox::class,
55
            'attributes' => [
56
                'id' => 'receive_invitation_group',
57
            ],
58
            'options' => [
6752 efrain 59
                'use_hidden_element' => false,
1 www 60
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
61
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
62
            ]
63
        ]);
64
 
65
 
66
        $this->add([
67
            'name' => 'accept_my_request_join_group',
68
            'type' => \Laminas\Form\Element\Checkbox::class,
69
            'attributes' => [
70
                'id' => 'accept_my_request_join_group',
71
            ],
72
            'options' => [
6752 efrain 73
                'use_hidden_element' => false,
1 www 74
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
75
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
76
            ]
77
        ]);
78
 
79
        $this->add([
80
            'name' => 'receive_request_join_my_group',
81
            'type' => \Laminas\Form\Element\Checkbox::class,
82
            'attributes' => [
83
                'id' => 'receive_request_join_my_group',
84
            ],
85
            'options' => [
6752 efrain 86
                'use_hidden_element' => false,
1 www 87
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
88
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
89
            ]
90
        ]);
91
 
92
 
93
 
94
        $this->add([
95
            'name' => 'receive_invitation_company',
96
            'type' => \Laminas\Form\Element\Checkbox::class,
97
            'attributes' => [
98
                'id' => 'receive_invitation_company',
99
            ],
100
            'options' => [
6752 efrain 101
                'use_hidden_element' => false,
1 www 102
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
103
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
104
            ]
105
        ]);
106
 
107
 
108
        $this->add([
109
            'name' => 'like_my_feed',
110
            'type' => \Laminas\Form\Element\Checkbox::class,
111
            'attributes' => [
112
                'id' => 'like_my_feed',
113
            ],
114
            'options' => [
6752 efrain 115
                'use_hidden_element' => false,
1 www 116
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
117
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
118
            ]
119
        ]);
120
 
121
        $this->add([
122
            'name' => 'comment_my_feed',
123
            'type' => \Laminas\Form\Element\Checkbox::class,
124
            'attributes' => [
125
                'id' => 'comment_my_feed',
126
            ],
127
            'options' => [
6752 efrain 128
                'use_hidden_element' => false,
1 www 129
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
130
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
131
            ]
132
        ]);
133
 
134
 
135
        $this->add([
136
            'name' => 'share_my_feed',
137
            'type' => \Laminas\Form\Element\Checkbox::class,
138
            'attributes' => [
139
                'id' => 'share_my_feed',
140
            ],
141
            'options' => [
6752 efrain 142
                'use_hidden_element' => false,
1 www 143
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
144
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
145
            ]
146
        ]);
147
 
148
        $this->add([
149
            'name' => 'receive_inmail',
150
            'type' => \Laminas\Form\Element\Checkbox::class,
151
            'attributes' => [
152
                'id' => 'receive_inmail',
153
            ],
154
            'options' => [
6752 efrain 155
                'use_hidden_element' => false,
1 www 156
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
157
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
158
            ]
159
        ]);
160
 
161
 
162
        $this->add([
163
            'name' => 'receive_invitation_meeting',
164
            'type' => \Laminas\Form\Element\Checkbox::class,
165
            'attributes' => [
166
                'id' => 'receive_invitation_meeting',
167
            ],
168
            'options' => [
6752 efrain 169
                'use_hidden_element' => false,
1 www 170
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
171
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
172
            ]
173
        ]);
174
 
175
        $this->add([
176
            'name' => 'receive_reminder_meeting',
177
            'type' => \Laminas\Form\Element\Checkbox::class,
178
            'attributes' => [
179
                'id' => 'receive_reminder_meeting',
180
            ],
181
            'options' => [
6752 efrain 182
                'use_hidden_element' => false,
1 www 183
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
184
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
185
            ]
186
        ]);
187
 
188
        $this->add([
189
            'name' => 'receive_records_available_meeting',
190
            'type' => \Laminas\Form\Element\Checkbox::class,
191
            'attributes' => [
192
                'id' => 'receive_records_available_meeting',
193
            ],
194
            'options' => [
6752 efrain 195
                'use_hidden_element' => false,
1 www 196
                'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
197
                'checked_value'=>  \LeadersLinked\Model\UserNotificationSetting::YES,
198
            ]
199
        ]);
200
 
201
 
202
    }
203
 
204
 
205
}