PHP 클래스 lithium\data\Schema

상속: extends lithium\core\Object, implements ArrayAccess
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_autoConfig
$_fields
$_locked
$_meta
$_types

공개 메소드들

메소드 설명
__construct ( array $config = [] ) : void Constructor.
append ( array $fields ) : void Appends additional fields to the schema. Will not overwrite existing fields if any conflicts arise.
cast ( $object, $key, $data, array $options = [] )
defaults ( $name = null )
fields ( $name = null, $key = null )
has ( $field )
is ( string $condition, string $field ) : boolean Detects properties of a field, i.e. if it supports arrays.
merge ( object $schema ) : void Merges another Schema object into the current one.
meta ( $name = null )
names ( )
offsetExists ( $key )
offsetGet ( $key )
offsetSet ( $key, $value )
offsetUnset ( $key )
reset ( )
type ( $field )

보호된 메소드들

메소드 설명
_init ( )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $config = [] ) : void
$config array Available configuration options are: - `'fields'` _array_
리턴 void

_init() 보호된 메소드

protected _init ( )

append() 공개 메소드

Appends additional fields to the schema. Will not overwrite existing fields if any conflicts arise.
public append ( array $fields ) : void
$fields array New schema data.
리턴 void

cast() 공개 메소드

public cast ( $object, $key, $data, array $options = [] )
$options array

defaults() 공개 메소드

public defaults ( $name = null )

fields() 공개 메소드

public fields ( $name = null, $key = null )

has() 공개 메소드

public has ( $field )

is() 공개 메소드

Detects properties of a field, i.e. if it supports arrays.
public is ( string $condition, string $field ) : boolean
$condition string
$field string
리턴 boolean

merge() 공개 메소드

Merges another Schema object into the current one.
public merge ( object $schema ) : void
$schema object Another `Schema` class object to be merged into the current one. If this schema contains field names that conflict with existing field names, the existing fields will not be overwritten.
리턴 void

meta() 공개 메소드

public meta ( $name = null )

names() 공개 메소드

public names ( )

offsetExists() 공개 메소드

public offsetExists ( $key )

offsetGet() 공개 메소드

public offsetGet ( $key )

offsetSet() 공개 메소드

public offsetSet ( $key, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $key )

reset() 공개 메소드

public reset ( )

type() 공개 메소드

public type ( $field )

프로퍼티 상세

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

protected $_autoConfig

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

protected $_fields

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

protected $_locked

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

protected $_meta

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

protected $_types