Base class for LudoDBModel and LudoDBCollection
| package | LudoDB |
|---|---|
| author | Alf Magne Kalleland |
__construct()
__toString() : string
stringasJSON() : string
stringclearParsers()
commit()
configParser() : \LudoDBConfigParser | \LudoDBCollectionConfigParser
getConstructorValues() : array
arraygetId() : null
nullgetOnSuccessMessageFor($service) : string
By default, it returns an empty string.
stringgetUncommitted() : array
This method is implemented in LudoDBModel.
arraygetValidServices() : array
arraygetValues() : mixed
mixedhasConfigInExternalFile() : bool
boolhasRowWith(array $columnsEqual)
Example:
if($this->hasRowWith(array("email" => "name@dhtmlgoodies.com"));
array
read() : mixed
mixedshouldCache(string $service) : bool
This method should be implemented by sub classes when needed.
string
boolclearCache()
escapeArguments($values) : array
arraygetConfigParserKey() : string
stringonConstruct()
$JSONConfig : bool
$arguments : array
$config : array
| example | examples/cities/DemoCity.php |
|---|
$configParsers : array
$db : \LudoDB
$parser : \LudoDBCollectionConfigParser | \LudoDBConfigParser
$configParserKey : string
$sql_handler : \LudoDBSql