MkFramework
 All Data Structures Functions
Public Member Functions
plugin_valid Class Reference

Public Member Functions

 __construct ($tPost)
 
 exist ($sName)
 
 getValue ($sName)
 
 __call ($sMethod, $tParam=null)
 
 isValid ()
 
 getListError ()
 

Detailed Description

plugin_check classe pour verifier un lot de valeurs (verification de formulaire par exemple)

Author
Mika http://mkf.mkdevs.com/

Definition at line 23 of file plugin_valid.php.

Constructor & Destructor Documentation

__construct (   $tPost)

constructeur public

Parameters
arraytableau a verifier ($_POST,tableau de la row...)

Definition at line 36 of file plugin_valid.php.

Here is the call graph for this function:

Member Function Documentation

__call (   $sMethod,
  $tParam = null 
)

appel magique d'une methode de l'objet utilise pour le check public

Definition at line 73 of file plugin_valid.php.

Here is the call graph for this function:

exist (   $sName)

verifie si le champ existe dans le tableau en memoire public

Parameters
string$sNamenom du champ
Returns
bool retourne true/false selon

Definition at line 49 of file plugin_valid.php.

getListError ( )

retourne le tableau d'erreur public

Returns
array tableau d'erreur

Definition at line 104 of file plugin_valid.php.

getValue (   $sName)

retourne la valeur $sName du tableau en memoire public

Parameters
string$sNamenom du champ
Returns
undefined retourne la valeur du champ

Definition at line 62 of file plugin_valid.php.

Here is the caller graph for this function:

isValid ( )

verifie si tout est ok public

Returns
bool retourne true/false selon

Definition at line 96 of file plugin_valid.php.


The documentation for this class was generated from the following file: