PHP Class Devise\Pages\Fields\LiveFieldValue

Afficher le fichier Open project: devisephp/cms Class Usage Examples

Protected Properties

Свойство Type Description
$__ string stores all the relavent data for us in here so we don't conflict with outside values

Méthodes publiques

Méthode Description
__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

Method Details

__call() public méthode

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
Résultat mixed

__construct() public méthode

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

__get() public méthode

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
Résultat FieldValue

__id() public méthode

[__id description]
public __id ( ) : [type]
Résultat [type]

__toString() public méthode

..
public __toString ( ) : string
Résultat string

__type() public méthode

[__type description]
public __type ( ) : [type]
Résultat [type]

extract() public méthode

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
Résultat void

get() public méthode

..
public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
Résultat mixed

merge() public méthode

Merges in the array data into the field object json
public merge ( array $input ) : void
$input array
Résultat void

override() public méthode

Overrides this data with the new input array
public override ( array $input ) : void
$input array
Résultat void

toArray() public méthode

Returns this object as array
public toArray ( ) : array
Résultat array

toJSON() public méthode

Returns this object as json string
public toJSON ( ) : string
Résultat string

unextract() public méthode

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

Property Details

$__ protected_oe property

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