Collaboration diagram for ConfigurationStore:Public Member Functions | |
| load ($str) | |
| reset () | |
| add ($class, $propName, $pName, $pValue) | |
| get ($class, $propName=null, $pName=null) | |
| getText () | |
ConfigurationStore handles (de)serialization of the DocFam->configuration property from/to JSON into a array() struct called "store".
Definition at line 11 of file Class.ConfigurationStore.php.
| add | ( | $class, | |
| $propName, | |||
| $pName, | |||
| $pValue | |||
| ) |
Add a configuration parameter into the store
| string | $class | The parameter's class |
| string | $propName | The property's name |
| string | $pName | The parameter's name |
| string | $pValue | The parameter's value |
Definition at line 48 of file Class.ConfigurationStore.php.
| get | ( | $class, | |
$propName = null, |
|||
$pName = null |
|||
| ) |
Get a configuration parameter from the store
| string | $class | The parameter's class |
| null | $propName | The property's name. If $propName is null, then it will lookup all parameters matching the $pName |
| null | $pName | The parameter's name. If $pName is null, then it will lookup all parameters matching the $propName |
Definition at line 67 of file Class.ConfigurationStore.php.
| getText | ( | ) |
Returns the JSON text serialization of the store
Definition at line 102 of file Class.ConfigurationStore.php.
| load | ( | $str | ) |
Load a configuration JSON string into the corresponding array() struct
| string | $str | The configuration's JSON string |
Definition at line 20 of file Class.ConfigurationStore.php.
| reset | ( | ) |
Reset the array() struct
Definition at line 35 of file Class.ConfigurationStore.php.