\libform

Summary

Methods
Properties
Constants
open()
close()
textBox()
input()
select()
checkbox()
radio()
button()
submit()
hidden()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

open()

open(  $params = array()) : string

open form This method return the form element <form.

..

Parameters

$params

Returns

string

close()

close() : string

closed the form

Returns

string

textBox()

textBox(  $params = array()) : string

textBox This method creates a textarea element

Parameters

$params

Returns

string

input()

input(  $params = array()) : string

input This method returns a input text element.

Parameters

$params

Returns

string

select()

select(  $params = array()) : string

select This method returns a select html element.

It can be given a param called value which then will be preselected data has to be array(k=>v)

Parameters

$params

Returns

string

checkbox()

checkbox(  $params = array()) : string

checkboxMulti This method returns multiple checkbox elements in order given in an array For checking of checkbox pass checked Each checkbox should look like array(0=>array('id'=>'1', 'name'=>'cb[]', 'value'=>'x', 'label'=>'label_text' ))

Parameters

$params

Returns

string

radio()

radio(  $params = array()) : string

radioMulti This method returns radio elements in order given in an array For selection pass checked Each radio should look like array(0=>array('id'=>'1', 'name'=>'rd[]', 'value'=>'x', 'label'=>'label_text' ))

Parameters

$params

Returns

string

button()

button(  $params = array()) : string

This method returns a button element given the params for settings

Parameters

$params

Returns

string

submit()

submit(  $params = array()) : string

This method returns a submit button element given the params for settings

Parameters

$params

Returns

string

hidden()

hidden(  $params = array()) : string

This method returns a hidden input elements given its params

Parameters

$params

Returns

string