|
| $DEBUG = false |
|
| $arrayObjects = [] |
|
| $errors |
|
| $javascript = "<script> window.onclick = function() { var elements = document.getElementsByTagName('span'); for(var i = 0; i < elements.length; i++) {if ( elements[i].className === 'formError' ) {elements[i].style.display = 'none';} } } </script>" |
|
Olga::__construct |
( |
|
$jsonString = "" | ) |
|
Constructor which will make getters & setters
- Parameters
-
Olga::__call |
( |
|
$method, |
|
|
|
$args |
|
) |
| |
Call the dynamically instantiated getters & setters
- Parameters
-
- Returns
- mixed
The clone function must recreate the object closures
Custom Object JSON encoder, thanks to boukeversteegh at gmail dot com, modified by Andre van Zuydam to ignore dynamic getters and setters
- Parameters
-
- Returns
- string
Default to return a JSON string
- Returns
- string
Append an object that has similar properties as the known object
Method to clear all the objects from the system
- Returns
- bool
Give a count of the records in the object
- Returns
- int
Create the getters & setters
Olga::delete |
( |
|
$onlyFromMemory = false | ) |
|
A method to delete a whole object from the database & memory
- Parameters
-
bool | false | $onlyFromMemory | |
Olga::fromJSON |
( |
|
$jsonString | ) |
|
Converts a JSON strings values to the current object for instantiating the object
- Parameters
-
Olga::getBy |
( |
|
$fieldArray | ) |
|
Exact matching for retrieving a field from the database
- Parameters
-
- Returns
- $this
Loose field matching
- Parameters
-
- Returns
- $this
Olga::hookError |
( |
|
$fieldName, |
|
|
|
$message |
|
) |
| |
Uses minifyjs so be aware of this
- Parameters
-
type | $fieldName | |
type | $message | |
A method to load the data from the database into the object in question
Olga::mapRecord |
( |
|
$record | ) |
|
Maps a record to the object
- Parameters
-
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::removeFromDebby |
( |
| ) |
|
Remove items from the database
- Returns
- bool
Olga::removeFromXCache |
( |
| ) |
|
Method to remove an entry from xcache
- Returns
- $this|bool
Olga::save |
( |
|
$onlyToMemory = false | ) |
|
A method to save the data into the database from the object in question
- Parameters
-
bool | false | $onlyToMemory | Saves only to memory |
- Returns
- bool
Create an PHP array from the JSON representation of the object
- Returns
- Array
Create a JSON instance of the object
- Returns
- string
Create an PHP object from the JSON representation of the object
- Returns
- Array
Olga::validateForm |
( |
|
$requestArray, |
|
|
|
$requestTypes |
|
) |
| |
This function will return either true or object with all the invalid fields
- Parameters
-
| $_REQUEST | $requestArray |
JSON | $requestTypes | example '"street_address":{"string": "true"},"state":{"string": "true", "maxlength": "2"}' |
Olga::validEmail |
( |
|
$input, |
|
|
|
$briteVerify = false |
|
) |
| |
Olga::validName |
( |
|
$input, |
|
|
|
$checkValid = false |
|
) |
| |
Olga::validNumber |
( |
|
$input | ) |
|
Olga::validPhone |
( |
|
$input, |
|
|
|
$briteVerify = false |
|
) |
| |
Olga::validString |
( |
|
$input | ) |
|
Olga::$javascript = "<script> window.onclick = function() { var elements = document.getElementsByTagName('span'); for(var i = 0; i < elements.length; i++) {if ( elements[i].className === 'formError' ) {elements[i].style.display = 'none';} } } </script>" |
The documentation for this class was generated from the following file: