Static Public Member Functions | |
static | open ($action= '', $attr=array(), $hidden=NULL) |
Generates an opening HTML form tag. | |
static | open_multipart ($action, $attr=array(), $hidden=array()) |
Generates an opening HTML form tag that can be used for uploading files. | |
static | open_fieldset ($data=NULL, $extra= '') |
Generates a fieldset opening tag. | |
static | close_fieldset () |
Generates a fieldset closing tag. | |
static | legend ($text= '', $data=NULL, $extra= '') |
Generates a legend tag for use with a fieldset. | |
static | hidden ($data, $value= '', $extra= '') |
Generates hidden form fields. | |
static | input ($data, $value= '', $extra= '') |
Creates an HTML form input tag. | |
static | password ($data, $value= '', $extra= '') |
Creates a HTML form password input tag. | |
static | upload ($data, $value= '', $extra= '') |
Creates an HTML form upload input tag. | |
static | textarea ($data, $value= '', $extra= '') |
Creates an HTML form textarea tag. | |
static | dropdown ($data, $options=array(), $selected=array(), $extra= '') |
Creates an HTML form select tag, or "dropdown menu". | |
static | checkbox ($data, $value= '', $checked=FALSE, $extra= '') |
Creates an HTML form checkbox input tag. | |
static | radio ($data= '', $value= '', $checked=FALSE, $extra= '') |
Creates an HTML form radio input tag. | |
static | submit ($data= '', $value= '', $extra= '') |
Creates an HTML form submit input tag. | |
static | imagebutton ($data= '', $src= '', $extra= '') |
Creates an HTML form imagebutton input tag. | |
static | button ($data= '', $value= '', $extra= '') |
Creates an HTML form button input tag. | |
static | close ($extra= '') |
Closes an open form tag. | |
static | label ($data= '', $text= '', $extra= '') |
Creates an HTML form label tag. | |
static | attributes ($attr) |
Sorts a key/value array of HTML attributes, putting form attributes first, and returns an attribute string. | |
static | create_hiddens (&$array, $input, $prefix) |
Creates hidden input names and values from input array. |
|
static |
Sorts a key/value array of HTML attributes, putting form attributes first, and returns an attribute string.
array | HTML attributes array |
|
static |
Creates an HTML form button input tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form checkbox input tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
boolean | make the checkbox checked by default |
string | a string to be attached to the end of the attributes |
|
static |
Closes an open form tag.
string | string to be attached after the closing tag |
|
static |
Generates a fieldset closing tag.
|
static |
Creates hidden input names and values from input array.
type | $array | |
type | $input | |
type | $prefix |
|
static |
Creates an HTML form select tag, or "dropdown menu".
string|array | input name or an array of HTML attributes |
array | select options, when using a name |
string | option key that should be selected by default |
string | a string to be attached to the end of the attributes |
|
static |
Generates hidden form fields.
You can pass a simple key/value string or an associative array with multiple values.
string|array | input name (string) or key/value pairs (array) |
string | input value, if using an input name |
|
static |
Creates an HTML form imagebutton input tag.
string|array | input name or an array of HTML attributes |
string | source of image |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form input tag.
Defaults to a text type.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form label tag.
string|array | label "for" name or an array of HTML attributes |
string | label text or HTML |
string | a string to be attached to the end of the attributes |
|
static |
Generates a legend tag for use with a fieldset.
string | legend text |
array | HTML attributes |
string | a string to be attached to the end of the attributes |
|
static |
Generates an opening HTML form tag.
string | form action attribute |
array | extra attributes |
array | hidden fields to be created immediately after the form tag |
|
static |
Generates a fieldset opening tag.
array | html attributes |
string | a string to be attached to the end of the attributes |
|
static |
Generates an opening HTML form tag that can be used for uploading files.
string | form action attribute |
array | extra attributes |
array | hidden fields to be created immediately after the form tag |
|
static |
Creates a HTML form password input tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form radio input tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
boolean | make the radio selected by default |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form submit input tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form textarea tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
string | a string to be attached to the end of the attributes |
|
static |
Creates an HTML form upload input tag.
string|array | input name or an array of HTML attributes |
string | input value, when using a name |
string | a string to be attached to the end of the attributes |