PHP Класс form

$Id: form.php 2914 2008-06-25 22:45:11Z Shadowhand $
Автор: Kohana Team
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 = [] )

Защищенные методы

Метод Описание
action ( $action )
checkable ( $type, $name, $value, $checked, $attributes )
method ( $method )
optgroup ( $options, $label, $selected )
option ( $value, $display, $selected )

Описание методов

action() защищенный статический Метод

protected static action ( $action )

button() публичный статический Метод

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

checkable() защищенный статический Метод

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

checkbox() публичный статический Метод

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

close() публичный статический Метод

public static close ( )

date() публичный статический Метод

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

email() публичный статический Метод

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

file() публичный статический Метод

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

hidden() публичный статический Метод

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

image() публичный статический Метод

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

input() публичный статический Метод

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

method() защищенный статический Метод

protected static method ( $method )

number() публичный статический Метод

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

open() публичный статический Метод

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

open_multipart() публичный статический Метод

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

optgroup() защищенный статический Метод

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

option() защищенный статический Метод

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

password() публичный статический Метод

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

radio() публичный статический Метод

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

reset() публичный статический Метод

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

select() публичный статический Метод

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

submit() публичный статический Метод

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

telephone() публичный статический Метод

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

text() публичный статический Метод

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

textarea() публичный статический Метод

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

url() публичный статический Метод

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