MkFramework
 All Data Structures Functions
Public Member Functions
_request Class Reference

Public Member Functions

 __construct ()
 
 getParam ($sVar, $else=null)
 
 setParam ($sVar, $val)
 
 getParams ()
 
 getParamsGET ()
 
 getParamsPOST ()
 
 getParamNav ()
 
 setParamNav ($sNav)
 
 hasNavigation ()
 
 setModule ($sModule)
 
 setAction ($sAction)
 
 getModule ()
 
 getAction ()
 
 loadModuleAndAction ($sChaine)
 
 isPost ()
 
 isGet ()
 
 stripslashes_deep ($value)
 
 magic_quote ()
 
 __set ($sVar, $sVal)
 
 __get ($sVar)
 

Detailed Description

_request classe pour gerer le les requete

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

Definition at line 23 of file class_request.php.

Constructor & Destructor Documentation

__construct ( )

constructeur public

Parameters
array$tTabtableau de la requete $_GET, $_POST...

Definition at line 35 of file class_request.php.

Here is the call graph for this function:

Member Function Documentation

getAction ( )

retourne l'action public

Returns
string

Definition at line 184 of file class_request.php.

Here is the caller graph for this function:

getModule ( )

retourne le module public

Returns
string

Definition at line 176 of file class_request.php.

Here is the caller graph for this function:

getParam (   $sVar,
  $else = null 
)

retourne le parametre $sVar ou $else public

Returns
undefined $else
Parameters
string$sVarvariable a retourner

Definition at line 51 of file class_request.php.

Here is the call graph for this function:

getParamNav ( )

retourne la valeur de navigation public

Returns
string navigation (module::action)

Definition at line 133 of file class_request.php.

Here is the call graph for this function:

getParams ( )

recupere un tableau de l'ensemble des parametres

Definition at line 91 of file class_request.php.

Here is the call graph for this function:

getParamsGET ( )

recupere un tableau de l'ensemble des parametres GET (hors navigation: module::action)

Definition at line 102 of file class_request.php.

Here is the call graph for this function:

getParamsPOST ( )

recupere un tableau de l'ensemble des parametres POST

Definition at line 120 of file class_request.php.

Here is the call graph for this function:

hasNavigation ( )

retourne le parametre $sVar ou $else public

Returns
undefined $else
Parameters
string$sVarvariable a retourner

Definition at line 152 of file class_request.php.

Here is the caller graph for this function:

isGet ( )

indique si la requete utilise la methode GET public

Returns
bool

Definition at line 235 of file class_request.php.

isPost ( )

indique si la requete utilise la methode POST (soumission de formulaire par exple) public

Returns
bool

Definition at line 226 of file class_request.php.

loadModuleAndAction (   $sChaine)

initialise module/action a partir d'une chaine module::action public

Parameters
string$sChaine

Definition at line 201 of file class_request.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setAction (   $sAction)

defini le module $sAction public

Parameters
string$sAction

Definition at line 168 of file class_request.php.

Here is the caller graph for this function:

setModule (   $sModule)

defini le module $sModule public

Parameters
string$sModule

Definition at line 160 of file class_request.php.

Here is the caller graph for this function:

setParam (   $sVar,
  $val 
)

force une variable de request public

Parameters
string$sVar
string$val

Definition at line 81 of file class_request.php.

Here is the call graph for this function:

setParamNav (   $sNav)

force une variable de navigation public

Parameters
string$sNav

Definition at line 142 of file class_request.php.

Here is the call graph for this function:


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