Tina4
The Tina4 Stack
|
Public Member Functions | |
toJSON () | |
fromJSON ($jsonString) | |
__toJson ($data) | |
__call ($method, $args) | |
__construct ($jsonString="") | |
Olga is a class which adds getters and setters to your existing object, it has methods to export the class to JSON and to import the class from JSON User: Andre van Zuydam Date: 2015-09-04 Time: 04:05 PM
Olga::__construct | ( | $jsonString = "" | ) |
Constructor to make getters and setters
Olga::__call | ( | $method, | |
$args | |||
) |
Call the dynamically instantiated getters & setters
$method | |
$args |
Olga::__toJson | ( | $data | ) |
Custom Object JSON encoder, thanks to boukeversteegh at gmail dot com, modified by Andre van Zuydam to ignore dynamic getters and setters
$data |
Olga::fromJSON | ( | $jsonString | ) |
Converts a JSON strings values to the current object for instantiating the object
$jsonString |
Olga::toJSON | ( | ) |
Create a JSON instance of the object