| 15459 |
efrain |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
namespace LeadersLinked\Form\MyPrivateNetwork;
|
|
|
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 |
use LeadersLinked\Model\CompanyMicrolearningTopic;
|
|
|
14 |
use LeadersLinked\Model\CompanyMicrolearningCapsule;
|
|
|
15 |
use LeadersLinked\Model\Company;
|
|
|
16 |
|
|
|
17 |
class MyPrivateNetworkCalendarForm extends Form
|
|
|
18 |
{
|
|
|
19 |
|
|
|
20 |
public function __construct($internal = false)
|
|
|
21 |
{
|
|
|
22 |
parent::__construct();
|
|
|
23 |
$this->setInputFilter(new MyPrivateNetworkCalendarFilter());
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
$fields = [
|
|
|
27 |
'css_calendar_expire_bg_color',
|
|
|
28 |
'css_calendar_expire_text_color',
|
|
|
29 |
'css_calendar_zoom_bg_color',
|
|
|
30 |
'css_calendar_zoom_text_color',
|
|
|
31 |
'css_calendar_planning_objectives_and_goals_bg_color',
|
|
|
32 |
'css_calendar_planning_objectives_and_goals_text_color',
|
|
|
33 |
'css_calendar_performance_evaluation_bg_color',
|
|
|
34 |
'css_calendar_performance_evaluation_text_color',
|
|
|
35 |
'css_calendar_recruitment_and_selection_bg_color',
|
|
|
36 |
'css_calendar_recruitment_and_selection_text_color',
|
|
|
37 |
'css_calendar_survey_bg_color',
|
|
|
38 |
'css_calendar_survey_text_color',
|
|
|
39 |
'css_calendar_organizational_climate_bg_color',
|
|
|
40 |
'css_calendar_organizational_climate_text_color',
|
|
|
41 |
];
|
|
|
42 |
|
|
|
43 |
foreach($fields as $field)
|
|
|
44 |
{
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
$this->add([
|
|
|
48 |
'name' => $field,
|
|
|
49 |
'required' => false,
|
|
|
50 |
'filters' => [
|
|
|
51 |
['name' => \Laminas\Filter\StringTrim::class],
|
|
|
52 |
],
|
|
|
53 |
'validators' => [
|
|
|
54 |
[
|
|
|
55 |
'name' => \Laminas\Validator\StringLength::class,
|
|
|
56 |
'options' => [
|
|
|
57 |
'encoding' => 'UTF-8',
|
|
|
58 |
'max' => 7,
|
|
|
59 |
],
|
|
|
60 |
],
|
|
|
61 |
[
|
|
|
62 |
'name' => \Laminas\Validator\NotEmpty::class,
|
|
|
63 |
],
|
|
|
64 |
],
|
|
|
65 |
]);
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
}
|
|
|
72 |
}
|