Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractSql Class Reference

Public Member Functions

 getSqlString (PlatformInterface $adapterPlatform=null)
 Get SQL string for statement.
Parameters
null | PlatformInterface$adapterPlatform
Returns
string

 

Protected Member Functions

 buildSqlString (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 renderTable ($table, $alias=null)
 Render table with alias in from/join parts.
 
 processExpression (ExpressionInterface $expression, PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null, $namedParameterPrefix=null)
 int $runtimeExpressionPrefix
 
 createSqlFromSpecificationAndParameters ($specifications, $parameters)
 
 processSubSelect (Select $subselect, PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processJoin (Join $joins, PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 resolveColumnValue ($column, PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null, $namedParameterPrefix=null)
 
 resolveTable ($table, PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 localizeVariables ()
 Copy variables from the subject into the local properties.
 

Protected Attributes

 $specifications = []
 
 $processInfo = ['paramPrefix' => ''
 
 $instanceParameterIndex = []
 

Member Function Documentation

buildSqlString ( PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null 
)
protected
Parameters
PlatformInterface$platform
null | DriverInterface$driver
null | ParameterContainer$parameterContainer
Returns
string
createSqlFromSpecificationAndParameters (   $specifications,
  $parameters 
)
protected
Parameters
string | array$specifications
array$parameters
Returns
string
Exceptions
Exception\RuntimeException
getSqlString ( PlatformInterface  $adapterPlatform = null)

Get SQL string for statement.

Parameters
null | PlatformInterface$adapterPlatform
Returns
string

Implements SqlInterface.

localizeVariables ( )
protected

Copy variables from the subject into the local properties.

processExpression ( ExpressionInterface  $expression,
PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null,
  $namedParameterPrefix = null 
)
protected

int $runtimeExpressionPrefix

Parameters
ExpressionInterface$expression
PlatformInterface$platform
null | DriverInterface$driver
null | ParameterContainer$parameterContainer
null | string$namedParameterPrefix
Returns
string
Exceptions
Exception\RuntimeException
processJoin ( Join  $joins,
PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null 
)
protected
Parameters
Join[]$joins
PlatformInterface$platform
null | DriverInterface$driver
null | ParameterContainer$parameterContainer
Returns
null|string[] Null if no joins present, array of JOIN statements otherwise
Exceptions
Exception\InvalidArgumentExceptionfor invalid JOIN table names.
processSubSelect ( Select  $subselect,
PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null 
)
protected
Parameters
Select$subselect
PlatformInterface$platform
null | DriverInterface$driver
null | ParameterContainer$parameterContainer
Returns
string
renderTable (   $table,
  $alias = null 
)
protected

Render table with alias in from/join parts.

Todo:
move TableIdentifier concatination here
Parameters
string$table
string$alias
Returns
string
resolveColumnValue (   $column,
PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null,
  $namedParameterPrefix = null 
)
protected
Parameters
null | array | ExpressionInterface | Select$column
PlatformInterface$platform
null | DriverInterface$driver
null | string$namedParameterPrefix
null | ParameterContainer$parameterContainer
Returns
string
resolveTable (   $table,
PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null 
)
protected
Parameters
string | TableIdentifier | Select$table
PlatformInterface$platform
DriverInterface$driver
ParameterContainer$parameterContainer
Returns
string

Member Data Documentation

$instanceParameterIndex = []
protected
$processInfo = ['paramPrefix' => ''
protected
$specifications = []
protected