$_params
$_params : array
Hash containing connection parameters.
Beatnik_Driver:: defines an API implementing astorage backends for Beatnik.
Copyright 2005-2007 Alkaloid Networks http://www.alkaloid.net
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
recordExists(array $record, $rectype) : boolean
Try to determinate if the autogenerated record already exits. This method may be overridden in the backend driver for performance or other reasons.
array | $record | record to check |
$rectype |
if records exits or or not
saveRecord(array $info) : mixed
Saves a record fo the configured driver and checks/sets needCommit() Also first checks to ensure permission to save record is available.
array | $info | Data to be passed to backend driver for storage |
True on success, PEAR::Error on error
factory(string $driver = null, array $params = null) : mixed
Attempts to return a concrete Beatnik_Driver instance based on $driver.
string | $driver | The type of the concrete Beatnik_Driver subclass to return. The class name is based on the storage driver ($driver). The code is dynamically included. |
array | $params | (optional) A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Beatnik_Driver instance, or false on an error.