Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
CheckData Class Reference
+ Inheritance diagram for CheckData:
+ Collaboration diagram for CheckData:

Public Member Functions

 getErrors ()
 
 hasErrors ()
 
 addError ($msg)
 
 check (array $data, &$extra=null)
 

Protected Attributes

 $errors = array()
 

Detailed Description

Definition at line 7 of file CheckData.php.

Member Function Documentation

addError (   $msg)

Definition at line 29 of file CheckData.php.

check ( array  $data,
$extra = null 
)
abstract
Parameters
array$data
null$extra
Returns
CheckData this itself
getErrors ( )

call it after check to see error message

Returns
string error message

Definition at line 17 of file CheckData.php.

hasErrors ( )

call it after check to see if error occurs

Returns
bool

Definition at line 25 of file CheckData.php.

Field Documentation

$errors = array()
protected

Definition at line 12 of file CheckData.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen