Class Storage_Statement
Base class for prepared storage query statements.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Storage_Statement
Direct known subclasses
Indirect known subclasses
Core\Storage\Driver\mysql_Statement
,
Core\Storage\Driver\odbc_Statement
,
Core\Storage\Driver\sqlite2_Statement
,
Core\Storage\Driver\sqlite3_Statement
Namespace: Core
Package: Core\Storage
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at Storage.inc.php
Methods summary
public
|
#
__construct(
Internal method to initialise a new prepared storage statement. |
public
string
|
#
__toString( )
Formats the statement type class name including the query string. Useful for debug output. |
protected
string
|
#
_bind( string $name, mixed $value = null )
Establishes private binding and returns »?«, the standard marker for parameters. Storage engines that use different markers should overwrite this method and call the parent method to establish bindings but return a different marker. |
protected
string
|
#
_transform( $node )
Accessor transformation hub. Transforms a given accessor node into the driver-specific format by calling transformation methods for each accessor node recursively. |
protected
string
|
|
protected
string
|
#
_transform_Core_Storage_Accessor_Parameter(
Registers a dynamic binding for the parameter provided. |
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
#
_transform_Storable(
Default transformation for objects implementing the |
protected
string
|
|
public
|
|
public
array
|
#
mergeParameters( array $parameters = null )
Merges internal parameters sets with external sets. If no external set
is given, external parameters are initialised with |
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
mixed[]
|
$_v_bindings
Array of bound parameter values (in the order they were bound). |
|
protected
int[]
|
$_v_bindingParameters
Associative array of parameter names as keys and their corresponding index in the bindings array as the value. |
|
protected
|
$_v_driver
Reference to the storage driver interface for the prepared statement. |
|
protected
integer
|
$_v_insertID
Cached insert ID of last statement execution. Only valid for insert statements. |
|
protected
string
|
$_v_query
Prepared storage-specific raw query. |
Magic properties
public read-only
|
$driver
Associated storage driver. |
public read-only
integer
|
$insertID
Cached insert ID of last statement execution (if statement is an insertion). |
public read-only
mixed
|
$query
Driver-specific representation of prepared statement. |