ConsoleTools: ezcConsoleDialogValidator
[ ]
[ ]
[ ]
[ ]
[ ]
Interface: ezcConsoleDialogValidator
|
Interface for ezcConsoleDialog validator classes. [
source]
Descendents
Constants
Method Summary
|
public mixed |
fixup(
$result )
Returns a fixed version of the result, if possible. |
|
public bool |
validate(
$result )
Returns if the given result is valid. |
Methods
fixup
mixed fixup(
mixed
$result )
Returns a fixed version of the result, if possible.
This method tries to repair the submitted result, if it is not valid, yet. Fixing can be done in different ways, like casting into a certain datatype, string manipulation, creating an object. A result returned by fixup must not necessarily be valid, so a dialog should call validate after trying to fix the result.
Parameters
| Name |
Type |
Description |
$result |
mixed |
The received result. |
validate
bool validate(
mixed
$result )
Returns if the given result is valid.
Parameters
| Name |
Type |
Description |
$result |
mixed |
The received result. |
Last updated: Wed, 28 Nov 2007