Tina4Stack  v1.0.1
The Tina4 Stack
Olga Class Reference
Inheritance diagram for Olga:
AjaxResponseAction AjaxRouterResponse

Public Member Functions

 populateFromXCache ()
 
 populateToXCache ()
 
 mapRecord ($record)
 
 populateFromDebby ($DEB)
 
 populateToDebby ()
 
 load ()
 
 save ($onlyToMemory=false)
 
 __clone ()
 
 append ($object)
 
 toJSON ()
 
 __toString ()
 
 fromJSON ($jsonString)
 
 populateObject ($sql)
 
 getBy ($fieldArray)
 
 getLike ($fieldArray, $matchType=OLGA_MATCH_ENDING)
 
 __toJson ($data)
 
 __call ($method, $args)
 
 persist ()
 
 createGetSet ()
 
 __construct ($jsonString="")
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 count ()
 
 clear ()
 

Public Attributes

 $arrayObjects = []
 

Constructor & Destructor Documentation

Olga::__construct (   $jsonString = "")

Constructor which will make getters & setters

Parameters
string$jsonString

Member Function Documentation

Olga::__call (   $method,
  $args 
)

Call the dynamically instantiated getters & setters

Parameters
$method
$args
Returns
mixed
Olga::__clone ( )

The clone function must recreate the object closures

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::__toString ( )

Default to return a JSON string

Returns
string
Olga::append (   $object)

Append an object that has similar properties as the known object

Olga::clear ( )

Method to clear all the objects from the system

Returns
bool
Olga::count ( )

Give a count of the records in the object

Returns
int
Olga::createGetSet ( )

Create the getters & setters

Olga::current ( )

Return the current element mixed Can return any type. 5.0.0

Olga::fromJSON (   $jsonString)

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

Parameters
$jsonString
Olga::getBy (   $fieldArray)

Exact matching for retrieving a field from the database

Parameters
$fieldArray
Returns
$this
Olga::getLike (   $fieldArray,
  $matchType = OLGA_MATCH_ENDING 
)

Loose field matching

Parameters
$fieldArray
Returns
$this
Olga::key ( )

Return the key of the current element mixed scalar on success, or null on failure. 5.0.0

Olga::load ( )

A method to load the data from the database into the object in question

Olga::mapRecord (   $record)

Maps a record to the object

Parameters
$record
Olga::next ( )

Move forward to next element void Any returned value is ignored. 5.0.0

Olga::persist ( )
Olga::populateFromDebby (   $DEB)

Method to get the results from the database

Olga::populateFromXCache ( )

Method to get the results from XCache into the object

Olga::populateObject (   $sql)
Olga::populateToDebby ( )

Method to update the database from the objects in memory

Returns
bool
Olga::populateToXCache ( )

Method to put the results into the xcache

Olga::rewind ( )

Rewind the Iterator to the first element void Any returned value is ignored. 5.0.0

Olga::save (   $onlyToMemory = false)

A method to save the data into the database from the object in question

Parameters
bool | false$onlyToMemorySaves only to memory
Returns
bool
Olga::toJSON ( )

Create a JSON instance of the object

Returns
string

Member Data Documentation

Olga::$arrayObjects = []

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