\JData
JData is a class that is used to store data but allowing you to access the data by mimicking the way PHP handles class properties.
Synopsis
class JData
implements
JDataDumpable,IteratorAggregate,JsonSerializable,Countable
{
- // members
- private $_properties;
- // methods
- public void __construct()
- public mixed __get()
- public boolean __isset()
- public void __set()
- public void __unset()
- public JData bind()
- public stdClass dump()
- public ArrayIterator getIterator()
- public string jsonSerialize()
- protected mixed dumpProperty()
- protected mixed getProperty()
- protected mixed setProperty()
- public integer count()
Hierarchy
Extended by
Implements
Members
private
- $_properties
—
array
The data properties.
Methods
protected
- dumpProperty() — Dumps a data property.
- getProperty() — Gets a data property.
- setProperty() — Sets a data property.
public
- __construct() — The class constructor.
- __get() — The magic get method is used to get a data property.
- __isset() — The magic isset method is used to check the state of an object property.
- __set() — The magic set method is used to set a data property.
- __unset() — The magic unset method is used to unset a data property.
- bind() — Binds an array or object to this object.
- count() — Count the number of data properties.
- dump() — Dumps the data properties into a stdClass object, recursively if appropriate.
- getIterator() — Gets this object represented as an ArrayIterator.
- jsonSerialize() — Gets the data properties in a form that can be serialised to JSON format.