OpenSencillo  2016.106
Long live the simplicity of PHP
 All Data Structures Namespaces Files Functions Pages
formCreator Class Reference

Public Member Functions

 newInputLine ($tag='input', $type='text', $params=array('id'=>'default'), $otherContent=null)
 
 getById ($id, $action="/", $method="post")
 
 groupToLines ($id, $tag=null, $params=null)
 

Protected Attributes

 $form =array()
 

Detailed Description

Definition at line 12 of file form.tool.framework.php.

Member Function Documentation

getById (   $id,
  $action = "/",
  $method = "post" 
)

Create form

Parameters
array$id(identification in the system)
Returns
string (if exist $id retruning html input tag)
Todo:
add div generator for label and input groupe

Definition at line 82 of file form.tool.framework.php.

groupToLines (   $id,
  $tag = null,
  $params = null 
)

Create a new form line (no save)

Parameters
string$id
string$tag,=null
Returns
string

Definition at line 101 of file form.tool.framework.php.


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