MkFramework
 All Data Structures Functions
Public Member Functions | Protected Attributes
plugin_form Class Reference

Public Member Functions

 __construct ($oObject=null)
 
 setMessage ($tMessage)
 
 getInputHidden ($sName, $tOption=null)
 
 getToken ($sName, $sValue, $tOption=null)
 
 getInputText ($sName, $tOption=null)
 
 getInputTextarea ($sName, $tOption=null)
 
 getInputUpload ($sName, $tOption=null)
 
 getSelect ($sName, $tValue, $tOption=null)
 
 getListRadio ($sName, $tValue, $tOption=null)
 
 getInputCheckbox ($sName, $sValue, $tOption=null)
 

Protected Attributes

 $oObject
 
 $tMessage
 
 $isPost
 

Detailed Description

plugin_form classe pour generer des elements de formulaire

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

Definition at line 23 of file plugin_form.php.

Constructor & Destructor Documentation

__construct (   $oObject = null)

constructeur public

Parameters
object$oObjectobjet en edition

Definition at line 34 of file plugin_form.php.

Here is the call graph for this function:

Member Function Documentation

getInputCheckbox (   $sName,
  $sValue,
  $tOption = null 
)

retourne un champ input checkbox public

Parameters
string$sNamenom du champ
string$sValuevaleur du champ checkbox
array$tOptionoptions du champ

Definition at line 167 of file plugin_form.php.

getInputHidden (   $sName,
  $tOption = null 
)

retourne un champ input cache public

Parameters
string$sNamenom du champ
array$tOptionoptions du champ texte

Definition at line 58 of file plugin_form.php.

getInputText (   $sName,
  $tOption = null 
)

retourne un champ input texte public

Parameters
string$sNamenom du champ
array$tOptionoptions du champ texte

Definition at line 82 of file plugin_form.php.

getInputTextarea (   $sName,
  $tOption = null 
)

retourne un champ input textarea public

Parameters
string$sNamenom du champ
array$tOptionoptions du champ texte

Definition at line 94 of file plugin_form.php.

getInputUpload (   $sName,
  $tOption = null 
)

retourne un champ upload public

Parameters
string$sNamenom du champ
array$tOptionoptions du champ upload

Definition at line 107 of file plugin_form.php.

getListRadio (   $sName,
  $tValue,
  $tOption = null 
)

retourne une liste de champs radio public

Parameters
string$sNamenom du champ
arraytableau des valeurs de champ radio
array$tOptionoptions des champs

Definition at line 145 of file plugin_form.php.

getSelect (   $sName,
  $tValue,
  $tOption = null 
)

retourne un champ menu deroulant public

Parameters
string$sNamenom du champ
arraytableau des valeurs du menu deroulant
array$tOptionoptions du champ

Definition at line 120 of file plugin_form.php.

getToken (   $sName,
  $sValue,
  $tOption = null 
)

retourne un champ input de jeton (xsrf) public

Parameters
string$sNamenom du champ
string$sValuevaleur du jeton
array$tOptionoptions du champ texte

Definition at line 70 of file plugin_form.php.

setMessage (   $tMessage)

initialise le tableau de message d'erreur public

Parameters
array$tMessagetableau de message d'erreur

Definition at line 49 of file plugin_form.php.


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