MkFramework
 All Data Structures Functions
Public Member Functions
plugin_check Class Reference

Public Member Functions

 getLastErrorMsg ()
 
 isEqual ($uValueA, $uValueB, $sErrorMsg='KO isEqual')
 
 isStrictlyEqual ($uValueA, $uValueB, $sErrorMsg='KO isStrictlyEqual')
 
 isNotEqual ($uValueA, $uValueB, $sErrorMsg='KO isNotEqual')
 
 isUpperThan ($uValueA, $uValueB, $sErrorMsg='KO isUpperThan')
 
 isUpperOrEqualThan ($uValueA, $uValueB, $sErrorMsg='KO isUpperOrEqualThan')
 
 isLowerThan ($uValueA, $uValueB, $sErrorMsg='KO isLowerThan')
 
 isLowerOrEqualThan ($uValueA, $uValueB, $sErrorMsg='KO isLowerOrEqualThan')
 
 isEmpty ($uValueA, $sErrorMsg='KO isEmpty')
 
 isNotEmpty ($uValueA, $sErrorMsg='KO isNotEmpty')
 
 isEmailValid ($uValueA, $sErrorMsg='KO isEmailValid')
 
 matchExpression ($uValueA, $sExpression, $sErrorMsg='KO matchExpression')
 
 notMatchExpression ($uValueA, $sExpression, $sErrorMsg='KO notMatchExpression')
 

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_check.php.

Member Function Documentation

getLastErrorMsg ( )

retourne le dernier message d'erreur (utilise par la classe plugin_valid)

Definition at line 30 of file plugin_check.php.

isEmailValid (   $uValueA,
  $sErrorMsg = 'KO isEmailValid' 
)

verifie si le $uValueA est un email valide public

Parameters
undefined$uValueAvaleur A
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 174 of file plugin_check.php.

isEmpty (   $uValueA,
  $sErrorMsg = 'KO isEmpty' 
)

verifie si $uValueA est vide public

Parameters
undefined$uValueAvaleur A
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 146 of file plugin_check.php.

isEqual (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isEqual' 
)

verifie si $uValueA est egal a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 42 of file plugin_check.php.

isLowerOrEqualThan (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isLowerOrEqualThan' 
)

verifie si $uValueA est inferieur ou egal a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 132 of file plugin_check.php.

isLowerThan (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isLowerThan' 
)

verifie si $uValueA est inferieur a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 117 of file plugin_check.php.

isNotEmpty (   $uValueA,
  $sErrorMsg = 'KO isNotEmpty' 
)

verifie si $uValueA n'est pas vide public

Parameters
undefined$uValueAvaleur A
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 160 of file plugin_check.php.

isNotEqual (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isNotEqual' 
)

verifie si $uValueA n'est pas egal a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 72 of file plugin_check.php.

isStrictlyEqual (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isStrictlyEqual' 
)

verifie si $uValueA est strictement egal a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 57 of file plugin_check.php.

isUpperOrEqualThan (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isUpperOrEqualThan' 
)

verifie si $uValueA est superieur ou egal a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 102 of file plugin_check.php.

isUpperThan (   $uValueA,
  $uValueB,
  $sErrorMsg = 'KO isUpperThan' 
)

verifie si $uValueA est superieur a $uValueB public

Parameters
undefined$uValueAvaleur A
undefined$uValueBvaleur B
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 87 of file plugin_check.php.

matchExpression (   $uValueA,
  $sExpression,
  $sErrorMsg = 'KO matchExpression' 
)

verifie si le champ $sName verifie l'expression public

Parameters
string$sNamenom du champ a verifier
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 188 of file plugin_check.php.

notMatchExpression (   $uValueA,
  $sExpression,
  $sErrorMsg = 'KO notMatchExpression' 
)

verifie si le champ $sName ne verifie pas l'expression public

Parameters
string$sNamenom du champ a verifier
string$sErrorMsgmessage d'erreur a afficher
Returns
bool retourne true/false selon

Definition at line 202 of file plugin_check.php.


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