PHP 클래스 Formo_Core_Driver

파일 보기 프로젝트 열기: bmidget/kohana-formo

공개 메소드들

메소드 설명
added ( array $array ) : void Event that's run directly after a field is added
can_be_empty ( ) : boolean Return whether a field can post nothing (ie, checkboxes post nothing if not checked)
close ( array $array ) : string Allow for any special closing tags that don't fit the norm (ie, datalist)
get_attr ( array $array ) : array Allow any pre-configured attributes for a field or form
get_label ( array $array ) : string Return a formatted label
get_opts ( array $array ) : array Configure and return any option fields (ie select, radios and checkboxes fields)
get_opts_template ( array $array ) : string Retrieve a template that renders options for a field
get_tag ( ) : string Return a field's tag name. Has to be set for every field.
get_template ( array $array ) : void Return a field's template used with $field->render()
get_title ( array $array ) : string Get special title (used mostly for groups of fields like checkboxes and radios)
get_val ( array $array ) : mixed Return a field's value
get_validation_values ( array $array ) : void Find values that will be added to the field's validation object
is_a_parent ( ) : boolean Return whether this is usually a parent containing multiple fields
load ( array $array ) : void Driver actually sets a field's value from Formo::load()
name ( array $array ) : name Return a field's 'name' attribute
new_val ( array $array ) : mixed Take a raw new value in and return what the field should interpret the value to be
open ( array $array ) : string Return field's open tag
pre_validate ( array $array ) : void Event run before validation. Allows pre-configured rules to be added

메소드 상세

added() 공개 정적인 메소드

Event that's run directly after a field is added
public static added ( array $array ) : void
$array array
리턴 void

can_be_empty() 공개 정적인 메소드

Return whether a field can post nothing (ie, checkboxes post nothing if not checked)
public static can_be_empty ( ) : boolean
리턴 boolean

close() 공개 정적인 메소드

Allow for any special closing tags that don't fit the norm (ie, datalist)
public static close ( array $array ) : string
$array array
리턴 string

get_attr() 공개 정적인 메소드

Allow any pre-configured attributes for a field or form
public static get_attr ( array $array ) : array
$array array
리턴 array

get_label() 공개 정적인 메소드

Return a formatted label
public static get_label ( array $array ) : string
$array array
리턴 string

get_opts() 공개 정적인 메소드

Configure and return any option fields (ie select, radios and checkboxes fields)
public static get_opts ( array $array ) : array
$array array
리턴 array

get_opts_template() 공개 정적인 메소드

Retrieve a template that renders options for a field
public static get_opts_template ( array $array ) : string
$array array
리턴 string

get_tag() 공개 정적인 메소드

Return a field's tag name. Has to be set for every field.
public static get_tag ( ) : string
리턴 string

get_template() 공개 정적인 메소드

Return a field's template used with $field->render()
public static get_template ( array $array ) : void
$array array
리턴 void

get_title() 공개 정적인 메소드

Get special title (used mostly for groups of fields like checkboxes and radios)
public static get_title ( array $array ) : string
$array array
리턴 string

get_val() 공개 정적인 메소드

Return a field's value
public static get_val ( array $array ) : mixed
$array array
리턴 mixed

get_validation_values() 공개 정적인 메소드

Find values that will be added to the field's validation object
public static get_validation_values ( array $array ) : void
$array array
리턴 void

is_a_parent() 공개 정적인 메소드

Return whether this is usually a parent containing multiple fields
public static is_a_parent ( ) : boolean
리턴 boolean

load() 공개 정적인 메소드

Driver actually sets a field's value from Formo::load()
public static load ( array $array ) : void
$array array
리턴 void

name() 공개 정적인 메소드

Return a field's 'name' attribute
public static name ( array $array ) : name
$array array
리턴 name

new_val() 공개 정적인 메소드

Take a raw new value in and return what the field should interpret the value to be
public static new_val ( array $array ) : mixed
$array array
리턴 mixed

open() 공개 정적인 메소드

Return field's open tag
public static open ( array $array ) : string
$array array
리턴 string

pre_validate() 공개 정적인 메소드

Event run before validation. Allows pre-configured rules to be added
public static pre_validate ( array $array ) : void
$array array
리턴 void