1 <?php
2 /* --------------------------------------------------------------
3 CustomerInputValidatorSettingsInterface.inc.php 2015-05-27 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 /**
13 * Value Object.
14 *
15 * Interface CustomerInputValidatorSettingsInterface
16 *
17 * CustomerInputValidatorSettings stores all min length values and error messages for registration form validation.
18 *
19 * @category System
20 * @package Customer
21 * @subpackage Interfaces
22 */
23 interface CustomerInputValidatorSettingsInterface
24 {
25
26 /**
27 * Returns a city error message.
28 * @return string City error message.
29 */
30 public function getCityErrorMessage();
31
32
33 /**
34 * Returns the minimum required city character length.
35 * @return int City Minimum required city character length.
36 */
37 public function getCityMinLength();
38
39
40 /**
41 * Returns a company error message.
42 * @return string Company error message.
43 */
44 public function getCompanyErrorMessage();
45
46
47 /**
48 * Returns the minimum required company character length.
49 * @return int Minimum required company character length.
50 */
51 public function getCompanyMinLength();
52
53
54 /**
55 * Returns a country error message.
56 * @return mixed Country error message.
57 */
58 public function getCountryErrorMessage();
59
60
61 /**
62 * Returns a country zone error message.
63 * @return string Country zone error message.
64 */
65 public function getCountryZoneErrorMessage();
66
67
68 /**
69 * Returns the minimum required country zone character length.
70 * @return int Minimum required country zone character length.
71 */
72 public function getCountryZoneMinLength();
73
74
75 /**
76 * Returns a country zone selection error message.
77 * @return mixed Country zone selection error message.
78 */
79 public function getCountryZoneSelectionErrorMessage();
80
81
82 /**
83 * Returns a date of birth error message.
84 * @return mixed Date of birth error message.
85 */
86 public function getDateOfBirthErrorMessage();
87
88
89 /**
90 * Returns the minimum required date of birth character length.
91 * @return int Minimum required date of birth character length.
92 */
93 public function getDateOfBirthMinLength();
94
95
96 /**
97 * Returns an email address check error message.
98 * @return mixed Email address check error message.
99 */
100 public function getEmailAddressCheckErrorMessage();
101
102
103 /**
104 * Returns an email confirmation error message.
105 * @return mixed Email confirmation error message.
106 */
107 public function getEmailConfirmationErrorMessage();
108
109
110 /**
111 * Returns an email error message.
112 * @return string Email error message.
113 */
114 public function getEmailErrorMessage();
115
116
117 /**
118 * Returns an email exists error message.
119 * @return mixed Email exists error message.
120 */
121 public function getEmailExistsErrorMessage();
122
123
124 /**
125 * Returns the minimum required email character length.
126 * @return int Minimum required email character length.
127 */
128 public function getEmailMinLength();
129
130
131 /**
132 * Returns a first name error message.
133 * @return string First name error message.
134 */
135 public function getFirstnameErrorMessage();
136
137
138 /**
139 * Returns the minimum required first name character length.
140 * @return int Minimum required first name character length.
141 */
142 public function getFirstnameMinLength();
143
144
145 /**
146 * Returns a gender error message.
147 * @return mixed Gender error message.
148 */
149 public function getGenderErrorMessage();
150
151
152 /**
153 * Returns a last name error message.
154 * @return string Last name error message.
155 */
156 public function getLastnameErrorMessage();
157
158
159 /**
160 * Returns the minimum required last name character length.
161 * @return int Minimum required last name character length.
162 */
163 public function getLastnameMinLength();
164
165
166 /**
167 * Returns a password error message.
168 * @return string Password error message.
169 */
170 public function getPasswordErrorMessage();
171
172
173 /**
174 * Returns the minimum required password character length.
175 * @return int Minimum required password character length.
176 */
177 public function getPasswordMinLength();
178
179
180 /**
181 * Returns a password mismatch error message.
182 * @return mixed Password mismatch error message.
183 */
184 public function getPasswordMismatchErrorMessage();
185
186
187 /**
188 * Returns a post code error message.
189 * @return string Post code error message.
190 */
191 public function getPostcodeErrorMessage();
192
193
194 /**
195 * Returns the minimum required post code character length.
196 * @return int Minimum required post code character length.
197 */
198 public function getPostcodeMinLength();
199
200
201 /**
202 * Returns a street error message.
203 * @return string Street error message.
204 */
205 public function getStreetErrorMessage();
206
207
208 /**
209 * Returns the minimum required street character length.
210 * @return int Minimum required street character length.
211 */
212 public function getStreetMinLength();
213
214
215 /**
216 * Returns a telephone number error message.
217 * @return string Telephone number error message.
218 */
219 public function getTelephoneNumberErrorMessage();
220
221
222 /**
223 * Returns the minimum required telephone number character length.
224 * @return int Minimum required telephone number character length.
225 */
226 public function getTelephoneNumberMinLength();
227
228
229 /**
230 * Returns a VAT number error message.
231 * @return mixed VAT number error message.
232 */
233 public function getVatNumberErrorMessage();
234
235
236 /**
237 * Retrieves state value of company displaying.
238 * @return boolean Display company?
239 */
240 public function getDisplayCompany();
241
242
243 /**
244 * Retrieves state value of country displaying.
245 * @return boolean Display country?
246 */
247 public function getDisplayCountryZone();
248
249
250 /**
251 * Retrieves state value of date of birth displaying.
252 * @return boolean Display date of birth?
253 */
254 public function getDisplayDateOfBirth();
255
256
257 /**
258 * Retrieves state value of gender displaying.
259 * @return boolean Display gender?
260 */
261 public function getDisplayGender();
262
263
264 /**
265 * Retrieves state value of telephone number displaying
266 * @return boolean Display telephone number?
267 */
268 public function getDisplayTelephone();
269
270
271 /**
272 * Retrieves state value of suburb displaying
273 * @return boolean Display suburb?
274 */
275 public function getDisplaySuburb();
276
277
278 /**
279 * Retrieves state value of fax displaying
280 * @return boolean Display fax?
281 */
282 public function getDisplayFax();
283
284
285 /**
286 * Returns an invalid input error message.
287 * @return string Invalid input error message.
288 */
289 public function getInvalidInputErrorMessage();
290
291
292 /**
293 * Returns the maximum required first name character length.
294 * @return int Maximum required first name character length.
295 */
296 public function getFirstnameMaxLength();
297
298
299 /**
300 * Returns the maximum required last name character length.
301 * @return int Maximum required last name character length.
302 */
303 public function getLastnameMaxLength();
304
305
306 /**
307 * Returns the maximum required company character length.
308 * @return int Maximum required company character length.
309 */
310 public function getCompanyMaxLength();
311
312
313 /**
314 * Returns the maximum required VAT number character length.
315 * @return int Maximum required VAT number character length.
316 */
317 public function getVatNumberMaxLength();
318
319
320 /**
321 * Returns the maximum required street character length.
322 * @return int Maximum required street character length.
323 */
324 public function getStreetMaxLength();
325
326
327 /**
328 * Returns the maximum required post code character length.
329 * @return int Maximum required post code character length.
330 */
331 public function getPostcodeMaxLength();
332
333
334 /**
335 * Returns the maximum required city character length.
336 * @return int Maximum required city character length.
337 */
338 public function getCityMaxLength();
339
340
341 /**
342 * Returns the maximum required country zone character length.
343 * @return int Maximum required country zone character length.
344 */
345 public function getCountryZoneMaxLength();
346
347
348 /**
349 * Returns the maximum required suburb character length.
350 * @return int Maximum required suburb character length.
351 */
352 public function getSuburbMaxLength();
353
354
355 /**
356 * Returns the maximum required call number character length.
357 * @return int Maximum required call number character length.
358 */
359 public function getCallNumberMaxLength();
360 }