Base class for LudoDBModel and LudoDBCollection
package | LudoDB |
---|---|
author | Alf Magne Kalleland |
__construct()
__toString() : string
string
asJSON() : string
string
clearParsers()
commit()
configParser() : \LudoDBConfigParser | \LudoDBCollectionConfigParser
getConstructorValues() : array
array
getId() : null
null
getOnSuccessMessageFor($service) : string
By default, it returns an empty string.
string
getUncommitted() : array
This method is implemented in LudoDBModel.
array
getValidServices() : array
array
getValues() : mixed
mixed
hasConfigInExternalFile() : bool
bool
hasRowWith(array $columnsEqual)
Example:
if($this->hasRowWith(array("email" => "name@dhtmlgoodies.com"));
array
read() : mixed
mixed
shouldCache(string $service) : bool
This method should be implemented by sub classes when needed.
string
bool
clearCache()
escapeArguments($values) : array
array
getConfigParserKey() : string
string
onConstruct()
$JSONConfig : bool
$arguments : array
$config : array
example | examples/cities/DemoCity.php |
---|
$configParsers : array
$db : \LudoDB
$parser : \LudoDBCollectionConfigParser | \LudoDBConfigParser
$configParserKey : string
$sql_handler : \LudoDBSql