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

Public Member Functions

 setSubject ($select)
 
- Public Member Functions inherited from Select
 __construct ($table=null)
 Constructor.
 
 from ($table)
 Create from clause.
 
 quantifier ($quantifier)
 
 columns (array $columns, $prefixColumnsWithTable=true)
 Specify columns from which to select.
 
 join ($name, $on, $columns=self::SQL_STAR, $type=self::JOIN_INNER)
 Create join clause.
 
 where ($predicate, $combination=Predicate\PredicateSet::OP_AND)
 Create where clause.
 
 group ($group)
 
 having ($predicate, $combination=Predicate\PredicateSet::OP_AND)
 Create having clause.
 
 order ($order)
 
 limit ($limit)
 
 offset ($offset)
 
 combine (Select $select, $type=self::COMBINE_UNION, $modifier= '')
 
 reset ($part)
 
 setSpecification ($index, $specification)
 
 getRawState ($key=null)
 
 isTableReadOnly ()
 Returns whether the table is read only or not.
 
 __get ($name)
 Variable overloading.
 
 __clone ()
 __clone
 
- Public Member Functions inherited from AbstractPreparableSql
 prepareStatement (AdapterInterface $adapter, StatementContainerInterface $statementContainer)
 
Parameters
AdapterInterface$adapter
StatementContainerInterface$statementContainer
Returns
void

 
- Public Member Functions inherited from AbstractSql
 getSqlString (PlatformInterface $adapterPlatform=null)
 Get SQL string for statement.
Parameters
null | PlatformInterface$adapterPlatform
Returns
string

 

Protected Member Functions

 localizeVariables ()
 
 processLimitOffset (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null, &$sqls, &$parameters)
 
- Protected Member Functions inherited from Select
 processStatementStart (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processStatementEnd (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processSelect (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 Process the select part.
 
 processJoins (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processWhere (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processGroup (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processHaving (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processOrder (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processLimit (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processOffset (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 processCombine (PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 
 resolveTable ($table, PlatformInterface $platform, DriverInterface $driver=null, ParameterContainer $parameterContainer=null)
 

Protected Attributes

 $subject = null
 
- Protected Attributes inherited from Select
 $specifications
 
 $tableReadOnly = false
 
 $prefixColumnsWithTable = true
 
 $table = null
 
 $quantifier = null
 
 $columns = [self::SQL_STAR]
 
 $joins = null
 
 $where = null
 
 $order = []
 
 $group = null
 
 $having = null
 
 $limit = null
 
 $offset = null
 
 $combine = []
 

Additional Inherited Members

- Public Attributes inherited from Select
const SELECT = 'select'
 #@+ Constant
 
const QUANTIFIER = 'quantifier'
 
const COLUMNS = 'columns'
 
const TABLE = 'table'
 
const JOINS = 'joins'
 
const WHERE = 'where'
 
const GROUP = 'group'
 
const HAVING = 'having'
 
const ORDER = 'order'
 
const LIMIT = 'limit'
 
const OFFSET = 'offset'
 
const QUANTIFIER_DISTINCT = 'DISTINCT'
 
const QUANTIFIER_ALL = 'ALL'
 
const JOIN_INNER = Join::JOIN_INNER
 
const JOIN_OUTER = Join::JOIN_OUTER
 
const JOIN_LEFT = Join::JOIN_LEFT
 
const JOIN_RIGHT = Join::JOIN_RIGHT
 
const JOIN_RIGHT_OUTER = Join::JOIN_RIGHT_OUTER
 
const JOIN_LEFT_OUTER = Join::JOIN_LEFT_OUTER
 
const SQL_STAR = '*'
 
const ORDER_ASCENDING = 'ASC'
 
const ORDER_DESCENDING = 'DESC'
 
const COMBINE = 'combine'
 
const COMBINE_UNION = 'union'
 
const COMBINE_EXCEPT = 'except'
 
const COMBINE_INTERSECT = 'intersect'
 
const JOIN_OUTER_LEFT = 'outer left'
 #@-
 
const JOIN_OUTER_RIGHT = 'outer right'
 

Member Function Documentation

localizeVariables ( )
protected
processLimitOffset ( PlatformInterface  $platform,
DriverInterface  $driver = null,
ParameterContainer  $parameterContainer = null,
$sqls,
$parameters 
)
protected
Parameters
PlatformInterface$platform
DriverInterface$driver
ParameterContainer$parameterContainer
$sqls
$parameters
Returns
null
setSubject (   $select)
Parameters
Select$select

Implements PlatformDecoratorInterface.

Member Data Documentation

$subject = null
protected