PHP 클래스 Bootstrapper\Form

또한 보기: http://twitter.github.com/bootstrap/
저자: Patrick Talmadge - ([email protected])
저자: Maxime Fabre - ([email protected])
저자: Patrick Rose - ([email protected])
저자: Marvin Schröder - ([email protected])
상속: extends Illuminate\Support\Facades\Facade
파일 보기 프로젝트 열기: patricktalmadge/bootstrapper 1 사용 예제들

공개 메소드들

메소드 설명
color ( string $name, null $value = null, array $attributes = [] ) : string Creates a color element
date ( string $name, null $value = null, array $attributes = [] ) : string Creates a date input
datetime ( string $name, null $value = null, array $attributes = [] ) : string Creates a datetime form element
datetimelocal ( string $name, null $value = null, array $attributes = [] ) : string Creates a datetime local element
email ( string $name, string | null $value = null, array $attributes = [] ) : string
error ( string $label, string $input, array $attributes = [] ) : string Creates an error validation block
feedback ( string $label, string $input, string $icon, array $attributes = [] ) : string Creates a feedback block with an icon
getFormattedError ( string $name ) : string Get the formatted errors for the form element with the given name.
hasErrors ( string $name ) : boolean Determine whether the form element with the given name has any validation errors.
help ( string $helpText, array $attributes = [] ) : string Creates a help block
horizontal ( array $attributes = [] ) : string Opens a horizontal form
horizontalModel ( mixed $model, array $attributes = [] ) : string Opens a horizontal form with a given model
inline ( array $attributes = [] ) : string Opens an inline form
inlineModel ( mixed $model, array $attributes = [] ) : string Opens a inline form with a given model
label ( string $name, string | null $value = null, array $options = [], $escape_html = true ) : string
month ( string $name, null $value = null, array $attributes = [] ) : string Creates a month input
number ( string $name, null $value = null, array $attributes = [] ) : string Creates a number form element
password ( string $name, array $attributes = [] ) : string
search ( string $name, null $value = null, array $attributes = [] ) : string Creates a search element
select ( string $name, array $list = [], null $selected = null, array $attributes = [] ) : string
submit ( string | null $value = null, array $options = [] ) : string
success ( string $label, string $input, array $attributes = [] ) : string Creates a success validation block
tel ( string $name, null $value = null, array $attributes = [] ) : string Creates a tel element
text ( string $name, string | null $value = null, array $attributes = [] ) : string
textarea ( string $name, string | null $value = null, array $attributes = [] ) : string
time ( string $name, null $value = null, array $attributes = [] ) : string Creates a time form element
url ( string $name, null $value = null, array $attributes = [] ) : string Creates a url form element
validation ( string $type, string $label, string $input, array $attributes = [] ) : string Creates a validation block
warning ( string $label, string $input, array $attributes = [] ) : string Creates a warning validation block
week ( string $name, null $value = null, array $attributes = [] ) : string Creates a week form element

메소드 상세

color() 공개 메소드

Creates a color element
public color ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

date() 공개 메소드

Creates a date input
public date ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

datetime() 공개 메소드

Creates a datetime form element
또한 보기: Illuminate\FormBuilder\input()
public datetime ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null The value
$attributes array The attributes
리턴 string

datetimelocal() 공개 메소드

Creates a datetime local element
또한 보기: Illuminate\FormBuilder\input()
public datetimelocal ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

email() 공개 메소드

public email ( string $name, string | null $value = null, array $attributes = [] ) : string
$name string The name of the email input
$value string | null The default value of the input
$attributes array The attributes of the email input
리턴 string

error() 공개 메소드

Creates an error validation block
또한 보기: Bootstrapper\\Form::validation()
public error ( string $label, string $input, array $attributes = [] ) : string
$label string The label
$input string The input
$attributes array The attributes of the validation block
리턴 string

feedback() 공개 메소드

Creates a feedback block with an icon
public feedback ( string $label, string $input, string $icon, array $attributes = [] ) : string
$label string The label
$input string The input
$icon string The icon
$attributes array The attributes of the block
리턴 string

getFormattedError() 공개 메소드

Get the formatted errors for the form element with the given name.
public getFormattedError ( string $name ) : string
$name string
리턴 string

hasErrors() 공개 메소드

Determine whether the form element with the given name has any validation errors.
public hasErrors ( string $name ) : boolean
$name string
리턴 boolean

help() 공개 메소드

Creates a help block
public help ( string $helpText, array $attributes = [] ) : string
$helpText string The help text
$attributes array
리턴 string

horizontal() 공개 메소드

Opens a horizontal form
public horizontal ( array $attributes = [] ) : string
$attributes array
리턴 string

horizontalModel() 공개 메소드

Opens a horizontal form with a given model
또한 보기: Bootstrapper\Form::horizontal()
또한 보기: Illuminate\Html::model()
public horizontalModel ( mixed $model, array $attributes = [] ) : string
$model mixed
$attributes array
리턴 string

inline() 공개 메소드

Opens an inline form
public inline ( array $attributes = [] ) : string
$attributes array The attributes of the array
리턴 string

inlineModel() 공개 메소드

Opens a inline form with a given model
또한 보기: Bootstrapper\Form::inline()
또한 보기: Illuminate\Html::model()
public inlineModel ( mixed $model, array $attributes = [] ) : string
$model mixed
$attributes array
리턴 string

label() 공개 메소드

public label ( string $name, string | null $value = null, array $options = [], $escape_html = true ) : string
$name string The name of the object this label will be attached to
$value string | null The text of the label
$options array The options of the label
리턴 string

month() 공개 메소드

Creates a month input
public month ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

number() 공개 메소드

Creates a number form element
public number ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

password() 공개 메소드

public password ( string $name, array $attributes = [] ) : string
$name string The name of the password input
$attributes array The attributes of the input
리턴 string

select() 공개 메소드

public select ( string $name, array $list = [], null $selected = null, array $attributes = [] ) : string
$name string
$list array
$selected null
$attributes array
리턴 string

submit() 공개 메소드

public submit ( string | null $value = null, array $options = [] ) : string
$value string | null The value of the submit button
$options array The options
리턴 string

success() 공개 메소드

Creates a success validation block
또한 보기: Bootstrapper\\Form::validation()
public success ( string $label, string $input, array $attributes = [] ) : string
$label string The label
$input string The input
$attributes array The attributes of the validation block
리턴 string

tel() 공개 메소드

Creates a tel element
public tel ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

text() 공개 메소드

public text ( string $name, string | null $value = null, array $attributes = [] ) : string
$name string The name of the text input
$value string | null The default value
$attributes array The attributes of the input
리턴 string

textarea() 공개 메소드

public textarea ( string $name, string | null $value = null, array $attributes = [] ) : string
$name string The name of the text area
$value string | null The default value
$attributes array The attributes of the text area
리턴 string

time() 공개 메소드

Creates a time form element
public time ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

url() 공개 메소드

Creates a url form element
public url ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string

validation() 공개 메소드

Creates a validation block
public validation ( string $type, string $label, string $input, array $attributes = [] ) : string
$type string The type of validation
$label string The label
$input string The input
$attributes array The attributes of the validation block
리턴 string

warning() 공개 메소드

Creates a warning validation block
또한 보기: Bootstrapper\\Form::validation()
public warning ( string $label, string $input, array $attributes = [] ) : string
$label string The label
$input string The input
$attributes array The attributes of the validation block
리턴 string

week() 공개 메소드

Creates a week form element
public week ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string