\JRegistry
JRegistry class
Synopsis
class JRegistry
implements
JsonSerializable
{
- // members
- protected $data;
- protected $instances;
- // methods
- public void __construct()
- public JRegistry __clone()
- public string __toString()
- public jsonSerialize()
- public mixed def()
- public boolean exists()
- public mixed get()
- public static JRegistry getInstance()
- public boolean loadArray()
- public boolean loadObject()
- public boolean loadFile()
- public boolean loadString()
- public boolean merge()
- public mixed set()
- public array toArray()
- public toObject()
- public string toString()
- protected void bindData()
- protected array asArray()
Hierarchy
Members
Methods
protected
- asArray() — Method to recursively convert an object of data to an array.
- bindData() — Method to recursively bind data to a parent object.
public
- __construct() — Constructor
- __clone() — Magic function to clone the registry object.
- __toString() — Magic function to render this object as a string using default args of toString method.
- def() — Sets a default value if not already assigned.
- exists() — Check if a registry path exists.
- get() — Get a registry value.
- getInstance() — Returns a reference to a global JRegistry object, only creating it if it doesn't already exist.
- jsonSerialize() — Implementation for the JsonSerializable interface.
- loadArray() — Load a associative array of values into the default namespace
- loadFile() — Load the contents of a file into the registry
- loadObject() — Load the public variables of the object into the default namespace.
- loadString() — Load a string into the registry
- merge() — Merge a JRegistry object into this one
- set() — Set a registry value.
- toArray() — Transforms a namespace to an array
- toObject() — Transforms a namespace to an object
- toString() — Get a namespace in a given string format