Tina4
The Tina4 Stack
Public Member Functions | List of all members
Olga Class Reference

Public Member Functions

 toJSON ()
 
 fromJSON ($jsonString)
 
 __toJson ($data)
 
 __call ($method, $args)
 
 __construct ($jsonString="")
 

Detailed Description

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

Constructor & Destructor Documentation

Olga::__construct (   $jsonString = "")

Constructor to make getters and setters

Member Function Documentation

Olga::__call (   $method,
  $args 
)

Call the dynamically instantiated getters & setters

Parameters
$method
$args
Returns
mixed
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

Parameters
$data
Returns
string
Olga::fromJSON (   $jsonString)

Converts a JSON strings values to the current object for instantiating the object

Parameters
$jsonString
Olga::toJSON ( )

Create a JSON instance of the object

Returns
string

The documentation for this class was generated from the following file: