Doctrine\ORM\Tools\Pagination\CountWalker
Replaces the selectClause of the AST with a COUNT statement
- Author: David Abdemoulaie <dave@hobodave.com>
- Copyright: Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/)
- License: http://hobodave.com/license.txt New BSD License
Synopsis
class CountWalker
extends TreeWalkerAdapter
{
- // constants
- const HINT_DISTINCT = 'doctrine_paginator.distinct';
- // methods
- public void walkSelectStatement()
- // Inherited methods from TreeWalkerAdapter
- public void __construct()
- protected array _getQueryComponents()
- protected Query _getQuery()
- protected ParserResult _getParserResult()
- public string walkSelectStatement()
- public string walkSelectClause()
- public string walkFromClause()
- public string walkFunction()
- public string walkOrderByClause()
- public string walkOrderByItem()
- public string walkHavingClause()
- public string walkJoin()
- public string walkSelectExpression()
- public string walkQuantifiedExpression()
- public string walkSubselect()
- public string walkSubselectFromClause()
- public string walkSimpleSelectClause()
- public string walkSimpleSelectExpression()
- public string walkAggregateExpression()
- public string walkGroupByClause()
- public string walkGroupByItem()
- public string walkUpdateStatement()
- public string walkDeleteStatement()
- public string walkDeleteClause()
- public string walkUpdateClause()
- public string walkUpdateItem()
- public string walkWhereClause()
- public string walkConditionalExpression()
- public string walkConditionalTerm()
- public string walkConditionalFactor()
- public string walkConditionalPrimary()
- public string walkExistsExpression()
- public string walkCollectionMemberExpression()
- public string walkEmptyCollectionComparisonExpression()
- public string walkNullComparisonExpression()
- public string walkInExpression()
- public string walkInstanceOfExpression()
- public string walkLiteral()
- public string walkBetweenExpression()
- public string walkLikeExpression()
- public string walkStateFieldPathExpression()
- public string walkComparisonExpression()
- public string walkInputParameter()
- public string walkArithmeticExpression()
- public string walkArithmeticTerm()
- public string walkStringPrimary()
- public string walkArithmeticFactor()
- public string walkSimpleArithmeticExpression()
- public string walkPathExpression()
- public string walkResultVariable()
- public AbstractExecutor getExecutor()
Hierarchy
Constants
Name | Value |
---|---|
HINT_DISTINCT | 'doctrine_paginator.distinct' |
Methods
public
- walkSelectStatement() — Walks down a SelectStatement AST node, modifying it to retrieve a COUNT
Inherited from Doctrine\ORM\Query\TreeWalkerAdapter
protected
- _getParserResult() — Retrieve ParserResult
- _getQuery() — Retrieve Query Instance reponsible for the current walkers execution.
- _getQueryComponents()
public
- getExecutor() — Gets an executor that can be used to execute the result of this walker.
- walkAggregateExpression() — Walks down an AggregateExpression AST node, thereby generating the appropriate SQL.
- walkArithmeticExpression() — Walks down an ArithmeticExpression AST node, thereby generating the appropriate SQL.
- walkArithmeticFactor() — Walks down an ArithmeticFactor that represents an AST node, thereby generating the appropriate SQL.
- walkArithmeticTerm() — Walks down an ArithmeticTerm AST node, thereby generating the appropriate SQL.
- walkBetweenExpression() — Walks down a BetweenExpression AST node, thereby generating the appropriate SQL.
- walkCollectionMemberExpression() — Walks down a CollectionMemberExpression AST node, thereby generating the appropriate SQL.
- walkComparisonExpression() — Walks down a ComparisonExpression AST node, thereby generating the appropriate SQL.
- walkConditionalExpression() — Walks down a ConditionalExpression AST node, thereby generating the appropriate SQL.
- walkConditionalFactor() — Walks down a ConditionalFactor AST node, thereby generating the appropriate SQL.
- walkConditionalPrimary() — Walks down a ConditionalPrimary AST node, thereby generating the appropriate SQL.
- walkConditionalTerm() — Walks down a ConditionalTerm AST node, thereby generating the appropriate SQL.
- walkDeleteClause() — Walks down a DeleteClause AST node, thereby generating the appropriate SQL.
- walkDeleteStatement() — Walks down a DeleteStatement AST node, thereby generating the appropriate SQL.
- walkEmptyCollectionComparisonExpression() — Walks down an EmptyCollectionComparisonExpression AST node, thereby generating the appropriate SQL.
- walkExistsExpression() — Walks down an ExistsExpression AST node, thereby generating the appropriate SQL.
- walkFromClause() — Walks down a FromClause AST node, thereby generating the appropriate SQL.
- walkFunction() — Walks down a FunctionNode AST node, thereby generating the appropriate SQL.
- walkGroupByClause() — Walks down a GroupByClause AST node, thereby generating the appropriate SQL.
- walkGroupByItem() — Walks down a GroupByItem AST node, thereby generating the appropriate SQL.
- walkHavingClause() — Walks down a HavingClause AST node, thereby generating the appropriate SQL.
- walkInExpression() — Walks down an InExpression AST node, thereby generating the appropriate SQL.
- walkInputParameter() — Walks down an InputParameter AST node, thereby generating the appropriate SQL.
- walkInstanceOfExpression() — Walks down an InstanceOfExpression AST node, thereby generating the appropriate SQL.
- walkJoin() — Walks down a Join AST node and creates the corresponding SQL.
- walkLikeExpression() — Walks down a LikeExpression AST node, thereby generating the appropriate SQL.
- walkLiteral() — Walks down a literal that represents an AST node, thereby generating the appropriate SQL.
- walkNullComparisonExpression() — Walks down a NullComparisonExpression AST node, thereby generating the appropriate SQL.
- walkOrderByClause() — Walks down an OrderByClause AST node, thereby generating the appropriate SQL.
- walkOrderByItem() — Walks down an OrderByItem AST node, thereby generating the appropriate SQL.
- walkPathExpression() — Walks down an PathExpression AST node, thereby generating the appropriate SQL.
- walkQuantifiedExpression() — Walks down a QuantifiedExpression AST node, thereby generating the appropriate SQL.
- walkResultVariable() — Walks down an ResultVariable AST node, thereby generating the appropriate SQL.
- walkSelectClause() — Walks down a SelectClause AST node, thereby generating the appropriate SQL.
- walkSelectExpression() — Walks down a SelectExpression AST node and generates the corresponding SQL.
- walkSelectStatement() — Walks down a SelectStatement AST node, thereby generating the appropriate SQL.
- walkSimpleArithmeticExpression() — Walks down an SimpleArithmeticExpression AST node, thereby generating the appropriate SQL.
- walkSimpleSelectClause() — Walks down a SimpleSelectClause AST node, thereby generating the appropriate SQL.
- walkSimpleSelectExpression() — Walks down a SimpleSelectExpression AST node, thereby generating the appropriate SQL.
- walkStateFieldPathExpression() — Walks down a StateFieldPathExpression AST node, thereby generating the appropriate SQL.
- walkStringPrimary() — Walks down a StringPrimary that represents an AST node, thereby generating the appropriate SQL.
- walkSubselect() — Walks down a Subselect AST node, thereby generating the appropriate SQL.
- walkSubselectFromClause() — Walks down a SubselectFromClause AST node, thereby generating the appropriate SQL.
- walkUpdateClause() — Walks down an UpdateClause AST node, thereby generating the appropriate SQL.
- walkUpdateItem() — Walks down an UpdateItem AST node, thereby generating the appropriate SQL.
- walkUpdateStatement() — Walks down an UpdateStatement AST node, thereby generating the appropriate SQL.
- walkWhereClause() — Walks down a WhereClause AST node, thereby generating the appropriate SQL.