Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17002 | Ir a la última revisión | | 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
 
33
        $this->add([
34
            'name' => 'file',
35
            'type' => \Laminas\Form\Element\File::class,
36
             'attributes' => [
37
                'id' => 'file',
38
            ]
39
         ]);
17008 efrain 40
 
41
 
42
 
43
 
44
        $this->add([
45
            'name' => 'scheduled_active',
46
            'type' => \Laminas\Form\Element\Checkbox::class,
47
            'attributes' => [
48
                'id' => 'scheduled_active',
49
            ],
50
            'options' => [
51
                'use_hidden_element' => false,
52
                'unchecked_value' => '0',
53
                'checked_value' => '1',
54
            ]
55
        ]);
56
 
57
 
58
        $this->add([
59
            'name' => 'scheduled_timestamp',
60
            'type' => \Laminas\Form\Element\Text::class,
61
            'attributes' => [
62
                'id' => 'scheduled_timestamp',
63
                'maxlength' => 20
64
            ],
65
 
66
        ]);
67
 
68
 
69
        $this->add([
70
            'name' => 'notification_active',
71
            'type' => \Laminas\Form\Element\Checkbox::class,
72
            'attributes' => [
73
                'id' => 'notification_active',
74
            ],
75
            'options' => [
76
                'use_hidden_element' => false,
77
                'unchecked_value' => '0',
78
                'checked_value' => '1',
79
            ]
80
        ]);
81
 
82
        $this->add([
83
            'name' => 'notification_custom_active',
84
            'type' => \Laminas\Form\Element\Checkbox::class,
85
            'attributes' => [
86
                'id' => 'notification_custom_active',
87
            ],
88
            'options' => [
89
                'use_hidden_element' => false,
90
                'unchecked_value' => '0',
91
                'checked_value' => '1',
92
            ]
93
        ]);
94
 
95
        $this->add([
96
            'name' => 'notification_custom_title',
97
            'type' => \Laminas\Form\Element\Text::class,
98
            'attributes' => [
99
                'id'    => 'notification_custom_title',
100
                'maxlength' => 50,
101
            ]
102
        ]);
103
 
104
        $this->add([
105
            'name' => 'notification_custom_description',
106
            'type' => \Laminas\Form\Element\Textarea::class,
107
            'attributes' => [
108
                'id'    => 'notification_custom_description',
109
            ]
110
        ]);
17002 efrain 111
 
112
 
113
 
114
    }
115
 
116
 
117
 
118
}