PHP 클래스 Pop\Form\Fields

저자: Nick Sagona, III ([email protected])
상속: implements ArrayAccess
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fields array Fields array

공개 메소드들

메소드 설명
__construct ( mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null ) : Fields Constructor
__get ( string $name ) : mixed Get method to return the value of fields[$name].
__isset ( string $name ) : boolean Return the isset value of fields[$name].
__set ( string $name, mixed $value ) : void Set method to set the property to the value of fields[$name].
__unset ( string $name ) : void Unset fields[$name].
addFields ( array $fields ) : Fields Add form fields
addFieldsFromTable ( array $tableInfo, array $attribs = null, array $values = null, mixed $omit = null ) : Fields Add form fields from a related database table. The $tableInfo parameter should be the returned array result from calling the static Pop\Db\Record method, Record::getTableInfo();
factory ( mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null ) : Fields Static method to instantiate the fields object and return itself to facilitate chaining methods together.
getFields ( ) : array Get the form fields
setField ( string $field, mixed $attrib, mixed $value = null ) : Fields Set form field

메소드 상세

__construct() 공개 메소드

Instantiate the fields object
public __construct ( mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null ) : Fields
$fields mixed
$attribs array
$values array
$omit mixed
리턴 Fields

__get() 공개 메소드

Get method to return the value of fields[$name].
public __get ( string $name ) : mixed
$name string
리턴 mixed

__isset() 공개 메소드

Return the isset value of fields[$name].
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__set() 공개 메소드

Set method to set the property to the value of fields[$name].
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__unset() 공개 메소드

Unset fields[$name].
public __unset ( string $name ) : void
$name string
리턴 void

addFields() 공개 메소드

Add form fields
public addFields ( array $fields ) : Fields
$fields array
리턴 Fields

addFieldsFromTable() 공개 메소드

Add form fields from a related database table. The $tableInfo parameter should be the returned array result from calling the static Pop\Db\Record method, Record::getTableInfo();
public addFieldsFromTable ( array $tableInfo, array $attribs = null, array $values = null, mixed $omit = null ) : Fields
$tableInfo array
$attribs array
$values array
$omit mixed
리턴 Fields

factory() 공개 정적인 메소드

Static method to instantiate the fields object and return itself to facilitate chaining methods together.
public static factory ( mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null ) : Fields
$fields mixed
$attribs array
$values array
$omit mixed
리턴 Fields

getFields() 공개 메소드

Get the form fields
public getFields ( ) : array
리턴 array

setField() 공개 메소드

Set form field
public setField ( string $field, mixed $attrib, mixed $value = null ) : Fields
$field string
$attrib mixed
$value mixed
리턴 Fields

프로퍼티 상세

$fields 보호되어 있는 프로퍼티

Fields array
protected array $fields
리턴 array