PHP Class form, anchor-cms

$Id: form.php 2914 2008-06-25 22:45:11Z Shadowhand $
Author: Kohana Team
Show file Open project: anchorcms/anchor-cms Class Usage Examples

Public Methods

Method Description
button ( $value = null, $attributes = [] )
checkbox ( $name, $value = 1, $checked = false, $attributes = [] )
close ( )
date ( $name, $value = '', $attributes = [] )
email ( $name, $value = '', $attributes = [] )
file ( $name, $attributes = [] )
hidden ( $name, $value = '', $attributes = [] )
image ( $url, $name = null, $attributes = [] )
input ( $type, $name, $value = '', $attributes = [] )
number ( $name, $value = '', $attributes = [] )
open ( $action, $method = 'POST', $attributes = [] )
open_multipart ( $action, $attributes = [] )
password ( $name, $attributes = [] )
radio ( $name, $value = null, $checked = false, $attributes = [] )
reset ( $value = null, $attributes = [] )
search ( $name, $value = '', $attributes = [] )
select ( $name, $options = [], $selected = null, $attributes = [] )
submit ( $value = null, $attributes = [] )
telephone ( $name, $value = '', $attributes = [] )
text ( $name, $value = '', $attributes = [] )
textarea ( $name, $value = '', $attributes = [] )
url ( $name, $value = '', $attributes = [] )

Protected Methods

Method Description
action ( $action )
checkable ( $type, $name, $value, $checked, $attributes )
method ( $method )
optgroup ( $options, $label, $selected )
option ( $value, $display, $selected )

Method Details

action() protected static method

protected static action ( $action )

button() public static method

public static button ( $value = null, $attributes = [] )

checkable() protected static method

protected static checkable ( $type, $name, $value, $checked, $attributes )

checkbox() public static method

public static checkbox ( $name, $value = 1, $checked = false, $attributes = [] )

close() public static method

public static close ( )

date() public static method

public static date ( $name, $value = '', $attributes = [] )

email() public static method

public static email ( $name, $value = '', $attributes = [] )

file() public static method

public static file ( $name, $attributes = [] )

hidden() public static method

public static hidden ( $name, $value = '', $attributes = [] )

image() public static method

public static image ( $url, $name = null, $attributes = [] )

input() public static method

public static input ( $type, $name, $value = '', $attributes = [] )

method() protected static method

protected static method ( $method )

number() public static method

public static number ( $name, $value = '', $attributes = [] )

open() public static method

public static open ( $action, $method = 'POST', $attributes = [] )

open_multipart() public static method

public static open_multipart ( $action, $attributes = [] )

optgroup() protected static method

protected static optgroup ( $options, $label, $selected )

option() protected static method

protected static option ( $value, $display, $selected )

password() public static method

public static password ( $name, $attributes = [] )

radio() public static method

public static radio ( $name, $value = null, $checked = false, $attributes = [] )

reset() public static method

public static reset ( $value = null, $attributes = [] )

select() public static method

public static select ( $name, $options = [], $selected = null, $attributes = [] )

submit() public static method

public static submit ( $value = null, $attributes = [] )

telephone() public static method

public static telephone ( $name, $value = '', $attributes = [] )

text() public static method

public static text ( $name, $value = '', $attributes = [] )

textarea() public static method

public static textarea ( $name, $value = '', $attributes = [] )

url() public static method

public static url ( $name, $value = '', $attributes = [] )