1 |
joko |
1.1 |
<? |
2 |
|
|
/** |
3 |
|
|
* This file contains the NonValidatingFormProcessor child class. |
4 |
|
|
* |
5 |
|
|
* It inherits everything from phpHtmlLib's FormProcessor. |
6 |
|
|
* The single bit modified is in function "can_validate", |
7 |
|
|
* the form validation gets deactivated here. |
8 |
|
|
* |
9 |
|
|
* @package org.netfrag.patches |
10 |
|
|
* @name NonValidatingFormProcessor |
11 |
|
|
* |
12 |
|
|
*/ |
13 |
|
|
|
14 |
|
|
/** |
15 |
|
|
* Cvs-Log |
16 |
|
|
* |
17 |
|
|
* $Id: Generic.php,v 1.17 2003/04/09 02:07:33 joko Exp $ |
18 |
|
|
* |
19 |
|
|
* $Log: Generic.php,v $ |
20 |
|
|
* |
21 |
|
|
*/ |
22 |
|
|
|
23 |
|
|
/** |
24 |
|
|
* NonValidatingFormProcessor |
25 |
|
|
* |
26 |
|
|
* @package org.netfrag.patches |
27 |
|
|
* @subpackage phphtmllib/forms |
28 |
|
|
* @name NonValidatingFormProcessor |
29 |
|
|
* |
30 |
|
|
*/ |
31 |
|
|
class NonValidatingFormProcessor extends FormProcessor { |
32 |
|
|
|
33 |
|
|
/** |
34 |
|
|
* This method gets overwritten to toggle form validation *off*. |
35 |
|
|
* |
36 |
|
|
* @return bool |
37 |
|
|
*/ |
38 |
|
|
function can_validate() { |
39 |
|
|
return FALSE; |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
?> |