Class Storage
Base class for storage driver implementations and driver factory interface.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Storage
Direct known subclasses
Core\Storage\Driver\mysql
,
Core\Storage\Driver\odbc
,
Core\Storage\Driver\sqlite2
,
Core\Storage\Driver\sqlite3
Namespace: Core
Package: Core\Storage
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at Storage.inc.php
Methods summary
public static
|
|
abstract public
string
|
#
backendVersion( )
Returns the back-end version string. Some drivers use different layers for their backend storage (e.g. an interface library and a server) with different versions for each layer. The most basic layer, available and significant version is returned (e.g. the database server version). |
abstract public
string|false
|
|
abstract public
string
|
#
clientVersion( )
Returns the client version string. Some drivers use different layers for their back-end storage (e.g. an interface library and a server) with different versions for each layer. The highest layer, available and significant version is returned (e.g. the database client version). |
abstract public
|
|
abstract public
string
|
#
escape( string $value, boolean $addDelimiters = false )
Escapes a binary string specific to the storage back-end for direct usage. When performing direct commands on the back-end engine, most storage systems require the user to escaped data sequences (e.g. SQL). Each data sequence used for direct commands should therefore be preprocessed by this method prior to sending the command. |
abstract public
|
#
execute( mixed $statement, array $parameters = null )
Executes an accessor node, prepared storage statement or direct back-end query. |
abstract public
|
|
abstract public
|
#
reset( )
Resets the storage interface. To be used after environmental changes, e.g. a character set change. |
abstract public
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
string |
ContextArgument
Execution argument for context. |
#
'context-argument'
|
string |
Parameters
Execution argument for bound parameters. |
#
'parameters'
|
string |
RowClass
Execution argument for auto-embedding result rows in the given class name. |
#
'row-class'
|
integer |
DuplicateKeyError
Unified error code for a duplicate key. |
#
0x23000
|
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
integer
|
$_v_affectedRows
Cached number of affected rows by latest executed update query. |
#
0
|
protected
integer
|
$_v_insertID
Cached insert ID of latest backend query. Only valid for executed insert statements. |
#
0
|
Magic properties
public read-only
integer
|
$affectedRows
Cached numer of rows affected by last back-end query. |
public read-only
integer
|
$insertID
Cached ID of last back-end insertion query. |