PHP 클래스 Devise\Pages\Fields\LiveFieldValue

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$__ string stores all the relavent data for us in here so we don't conflict with outside values

공개 메소드들

메소드 설명
__call ( string $name, mixed $args ) : mixed Allows us to set default values on a key if we do not have that key set in this FieldValue object
__construct ( string $json, $fieldId, $type ) Create a new FieldValue object from json string
__get ( string $name ) : FieldValue Avoids null pointer exceptions by treating this like the empty string we only ever reach this magical method when we have attempted to fetch a key that does not exist on this FieldValue object
__id ( ) : [type] [__id description]
__toString ( ) : string This thing is just a string.
__type ( ) : [type] [__type description]
extract ( ) : void This extracts the variables so they may be used.
get ( string $name, mixed $default = null ) : mixed Gets this field with this name, returns default if nothing is found.
merge ( array $input ) : void Merges in the array data into the field object json
override ( array $input ) : void Overrides this data with the new input array
toArray ( ) : array Returns this object as array
toJSON ( ) : string Returns this object as json string
unextract ( ) : void Un extracts all the keys on this thing could be useful if we need to undo an extract

메소드 상세

__call() 공개 메소드

Allows us to set default values on a key if we do not have that key set in this FieldValue object
public __call ( string $name, mixed $args ) : mixed
$name string
$args mixed
리턴 mixed

__construct() 공개 메소드

Create a new FieldValue object from json string
public __construct ( string $json, $fieldId, $type )
$json string

__get() 공개 메소드

Avoids null pointer exceptions by treating this like the empty string we only ever reach this magical method when we have attempted to fetch a key that does not exist on this FieldValue object
public __get ( string $name ) : FieldValue
$name string
리턴 FieldValue

__id() 공개 메소드

[__id description]
public __id ( ) : [type]
리턴 [type]

__toString() 공개 메소드

..
public __toString ( ) : string
리턴 string

__type() 공개 메소드

[__type description]
public __type ( ) : [type]
리턴 [type]

extract() 공개 메소드

This is not recommended to do as it will mess up LiveUpdate, but it is needed in certain cases (for example in FieldManager)
public extract ( ) : void
리턴 void

get() 공개 메소드

..
public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
리턴 mixed

merge() 공개 메소드

Merges in the array data into the field object json
public merge ( array $input ) : void
$input array
리턴 void

override() 공개 메소드

Overrides this data with the new input array
public override ( array $input ) : void
$input array
리턴 void

toArray() 공개 메소드

Returns this object as array
public toArray ( ) : array
리턴 array

toJSON() 공개 메소드

Returns this object as json string
public toJSON ( ) : string
리턴 string

unextract() 공개 메소드

Un extracts all the keys on this thing could be useful if we need to undo an extract
public unextract ( ) : void
리턴 void

프로퍼티 상세

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

stores all the relavent data for us in here so we don't conflict with outside values
protected string $__
리턴 string