Open Sencillo  2014.008
 All Data Structures Files Functions Variables Pages
formCreator Class Reference

Public Member Functions

 create ($type, $params)
 
 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

create (   $type,
  $params 
)

Create input

Parameters
string$type(HTML5 types)
string$id(unique identification)
string$name(unique name)
string$value(sending value)
string$class(classes)
string$param(other parameters)
Returns
mixed

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

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

Create form

Parameters
array$id(identification in the system)
Returns
string (if exist $id retruning html input tag)

Definition at line 71 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
string$params,=null
Returns
string

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

Field Documentation

$form =array()
protected

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


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