Method |
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 |
|