This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /* |
||
3 | * This file is part of EC-CUBE |
||
4 | * |
||
5 | * Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved. |
||
6 | * |
||
7 | * http://www.lockon.co.jp/ |
||
8 | * |
||
9 | * This program is free software; you can redistribute it and/or |
||
10 | * modify it under the terms of the GNU General Public License |
||
11 | * as published by the Free Software Foundation; either version 2 |
||
12 | * of the License, or (at your option) any later version. |
||
13 | * |
||
14 | * This program is distributed in the hope that it will be useful, |
||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
17 | * GNU General Public License for more details. |
||
18 | * |
||
19 | * You should have received a copy of the GNU General Public License |
||
20 | * along with this program; if not, write to the Free Software |
||
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
||
22 | */ |
||
23 | |||
24 | |||
25 | namespace Eccube\Form\Type\Admin; |
||
26 | |||
27 | use Symfony\Component\Form\AbstractType; |
||
28 | use Symfony\Component\Form\Extension\Core\Type; |
||
29 | use Symfony\Component\Form\FormBuilderInterface; |
||
30 | use Symfony\Component\Validator\Constraints as Assert; |
||
31 | |||
32 | class SearchOrderType extends AbstractType |
||
33 | { |
||
34 | private $config; |
||
35 | |||
36 | 286 | public function __construct($config) |
|
37 | { |
||
38 | 286 | $this->config = $config; |
|
39 | 286 | } |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 3 | public function buildForm(FormBuilderInterface $builder, array $options) |
|
45 | { |
||
46 | 3 | $config = $this->config; |
|
47 | $builder |
||
48 | // 受注ID・注文者名・注文者(フリガナ)・注文者会社名 |
||
49 | ->add('multi', 'text', array( |
||
50 | 3 | 'label' => '受注ID・注文者名・注文者(フリガナ)・注文者会社名', |
|
51 | 3 | 'required' => false, |
|
52 | 'constraints' => array( |
||
53 | new Assert\Length(array('max' => $config['stext_len'])), |
||
54 | 3 | ), |
|
55 | )) |
||
56 | ->add('multi_status', 'order_status', array( |
||
57 | 'label' => '対応状況', |
||
58 | 'expanded' => true, |
||
59 | 'multiple' => true, |
||
60 | )) |
||
61 | ->add('name', 'text', array( |
||
62 | 'required' => false, |
||
63 | 3 | )) |
|
64 | ->add('email', 'text', array( |
||
65 | 'required' => false, |
||
66 | )) |
||
67 | ->add( |
||
68 | $builder->create('tel', 'text', array( |
||
69 | 3 | 'required' => false, |
|
70 | 'constraints' => array( |
||
71 | new Assert\Regex(array( |
||
72 | 'pattern' => "/^[\d-]+$/u", |
||
73 | 'message' => 'form.type.admin.nottelstyle', |
||
74 | )), |
||
75 | 3 | ), |
|
76 | )) |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
77 | ->addEventSubscriber(new \Eccube\EventListener\ConvertTelListener()) |
||
78 | ) |
||
79 | ->add('sex', 'sex', array( |
||
80 | 'label' => '性別', |
||
81 | 3 | 'required' => false, |
|
82 | 'expanded' => true, |
||
83 | 'multiple' => true, |
||
84 | )) |
||
85 | ->add('payment', 'payment', array( |
||
86 | 'label' => '支払方法', |
||
87 | 'required' => false, |
||
88 | 'expanded' => true, |
||
89 | 'multiple' => true, |
||
90 | )) |
||
91 | ->add('order_date_start', 'date', array( |
||
92 | 'label' => '受注日(FROM)', |
||
93 | 'required' => false, |
||
94 | 'input' => 'datetime', |
||
95 | 'widget' => 'single_text', |
||
96 | 'format' => 'yyyy-MM-dd', |
||
97 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
98 | )) |
||
99 | ->add('order_date_end', 'date', array( |
||
100 | 'label' => '受注日(TO)', |
||
101 | 'required' => false, |
||
102 | 'input' => 'datetime', |
||
103 | 'widget' => 'single_text', |
||
104 | 'format' => 'yyyy-MM-dd', |
||
105 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
106 | )) |
||
107 | ->add('payment_date_start', 'date', array( |
||
108 | 'label' => '入金日(FROM)', |
||
109 | 'required' => false, |
||
110 | 'input' => 'datetime', |
||
111 | 'widget' => 'single_text', |
||
112 | 'format' => 'yyyy-MM-dd', |
||
113 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
114 | )) |
||
115 | ->add('payment_date_end', 'date', array( |
||
116 | 'label' => '入金日(TO)', |
||
117 | 'required' => false, |
||
118 | 'input' => 'datetime', |
||
119 | 'widget' => 'single_text', |
||
120 | 'format' => 'yyyy-MM-dd', |
||
121 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
122 | )) |
||
123 | ->add('commit_date_start', 'date', array( |
||
124 | 'label' => '発送日(FROM)', |
||
125 | 'required' => false, |
||
126 | 'input' => 'datetime', |
||
127 | 'widget' => 'single_text', |
||
128 | 'format' => 'yyyy-MM-dd', |
||
129 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
130 | )) |
||
131 | ->add('commit_date_end', 'date', array( |
||
132 | 'label' => '発送日(TO)', |
||
133 | 'required' => false, |
||
134 | 'input' => 'datetime', |
||
135 | 'widget' => 'single_text', |
||
136 | 'format' => 'yyyy-MM-dd', |
||
137 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
138 | )) |
||
139 | ->add('update_date_start', 'date', array( |
||
140 | 'label' => '更新日(FROM)', |
||
141 | 'required' => false, |
||
142 | 'input' => 'datetime', |
||
143 | 'widget' => 'single_text', |
||
144 | 'format' => 'yyyy-MM-dd', |
||
145 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
146 | )) |
||
147 | ->add('update_date_end', 'date', array( |
||
148 | 'label' => '更新日(TO)', |
||
149 | 'required' => false, |
||
150 | 'input' => 'datetime', |
||
151 | 'widget' => 'single_text', |
||
152 | 'format' => 'yyyy-MM-dd', |
||
153 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
154 | )) |
||
155 | ->add('payment_total_start', 'integer', array( |
||
156 | 'label' => '購入金額(下限)', |
||
157 | 'required' => false, |
||
158 | )) |
||
159 | ->add('payment_total_end', 'integer', array( |
||
160 | 'label' => '購入金額(上限)', |
||
161 | 'required' => false, |
||
162 | )) |
||
163 | ->add('buy_product_name', 'text', array( |
||
164 | 'label' => '購入商品名', |
||
165 | 'required' => false, |
||
166 | )) |
||
167 | ; |
||
168 | |||
169 | $builder->add( |
||
170 | $builder |
||
171 | ->create('kana', 'text', array( |
||
172 | 'required' => false, |
||
173 | 'constraints' => array( |
||
174 | new Assert\Regex(array( |
||
175 | 'pattern' => "/^[ァ-ヶヲ-゚ー]+$/u", |
||
176 | 'message' => 'form.type.admin.notkanastyle', |
||
177 | )), |
||
178 | 283 | ), |
|
179 | )) |
||
180 | 283 | ->addEventSubscriber(new \Eccube\EventListener\ConvertKanaListener('CV')) |
|
181 | ); |
||
182 | } |
||
183 | |||
184 | /** |
||
185 | * {@inheritdoc} |
||
186 | */ |
||
187 | public function getName() |
||
188 | { |
||
189 | return 'admin_search_order'; |
||
190 | } |
||
191 | } |
||
192 |