Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension
This class contains the needed functions in order to do the query highlighting
- Author: Florin Patan <florinpatan@gmail.com>
Synopsis
class DoctrineExtension
extends Twig_Extension
{
- // members
- private integer $maxCharWidth;
- // methods
- public array getFilters()
- private array getPossibleCombinations()
- private string shrinkParameters()
- private string composeMiniQuery()
- public string minifyQuery()
- public static string escapeFunction()
- public string replaceQueryParameters()
- public string getName()
- // Inherited methods from Twig_Extension
- public void initRuntime()
- public array getTokenParsers()
- public array getNodeVisitors()
- public array getFilters()
- public array getTests()
- public array getFunctions()
- public array getOperators()
- public array getGlobals()
Hierarchy
Extends
Members
private
- $maxCharWidth
—
int
Number of maximum characters that one single line can hold in the interface
Methods
private
- composeMiniQuery() — Attempt to compose the best scenario minified query so that a user could find it without expanding it
- getPossibleCombinations() — Get the possible combinations of elements from the given array
- shrinkParameters() — Shrink the values of parameters from a combination
public
- escapeFunction() — Escape parameters of a SQL query DON'T USE THIS FUNCTION OUTSIDE ITS INTEDED SCOPE
- getFilters() — Define our functions
- getName() — Get the name of the extension
- minifyQuery() — Minify the query
- replaceQueryParameters() — Return a query with the parameters replaced
Inherited from Twig_Extension
public
- getFilters() — Returns a list of filters to add to the existing list.
- getFunctions() — Returns a list of functions to add to the existing list.
- getGlobals() — Returns a list of global variables to add to the existing list.
- getNodeVisitors() — Returns the node visitor instances to add to the existing list.
- getOperators() — Returns a list of operators to add to the existing list.
- getTests() — Returns a list of tests to add to the existing list.
- getTokenParsers() — Returns the token parser instances to add to the existing list.
- initRuntime() — Initializes the runtime environment.