FilterExpression

Extends\Twig\Node\Expression\CallExpression

Abstract class for all nodes that represents an expression.

package

Default

Methods

__construct

__construct(array $nodes = array(),array $attributes = array(),integer $lineno,string $tag = null)
inherited

Arguments

$nodes

array

An array of named nodes

$attributes

array

An array of attributes (should not be nodes)

$lineno

integer

The line number

$tag

string

The tag name associated with the Node

__toString

__toString()
inherited

Compiles the node to PHP.

compile(\Twig\Compiler $compiler)
inherited

Arguments

$compiler

\Twig\Compiler

compileArguments

compileArguments(\Twig\Compiler $compiler, $isArray = false)
inherited

Arguments

$compiler

\Twig\Compiler

$isArray

compileCallable

compileCallable(\Twig\Compiler $compiler)
inherited

Arguments

$compiler

\Twig\Compiler

count

count(): integer
inherited

Response

integer

getArguments

getArguments( $callable, $arguments)
inherited

Arguments

$callable

$arguments

getAttribute

getAttribute( $name): mixed
inherited

Arguments

$name

Response

mixed

getCallableParameters

getCallableParameters( $callable, $isVariadic)
inherited

Arguments

$callable

$isVariadic

getFilename

getFilename()
inherited
deprecated

since 1.27 (to be removed in 2.0)

getIterator

getIterator(): \Traversable
inherited

Response

\Traversable

getLine

getLine()
inherited
deprecated

since 1.27 (to be removed in 2.0)

getNode

getNode( $name): \Twig\Node\Node
inherited

Arguments

$name

Response

\Twig\Node\Node

getNodeTag

getNodeTag()
inherited

getSourceContext

getSourceContext()
inherited

getTemplateLine

getTemplateLine()
inherited

getTemplateName

getTemplateName()
inherited

hasAttribute

hasAttribute( $name): boolean
inherited

Arguments

$name

Response

boolean

hasNode

hasNode( $name): boolean
inherited

Arguments

$name

Response

boolean

normalizeName

normalizeName( $name)
inherited

Arguments

$name

reflectCallable

reflectCallable( $callable)
inherited

Arguments

$callable

removeAttribute

removeAttribute( $name)
inherited

Arguments

$name

removeNode

removeNode( $name)
inherited

Arguments

$name

setAttribute

setAttribute(string $name,mixed $value)
inherited

Arguments

$name

string

$value

mixed

setFilename

setFilename( $name)
inherited
deprecated

since 1.27 (to be removed in 2.0)

Arguments

$name

setNode

setNode( $name, $node = null)
inherited

Arguments

$name

$node

setSourceContext

setSourceContext(\Twig\Source $source)
inherited

Arguments

$source

\Twig\Source

setTemplateName

setTemplateName( $name)
inherited

Arguments

$name

toXml

toXml( $asDom = false)
inherited
deprecated

since 1.16.1 (to be removed in 2.0)

Arguments

$asDom

Properties

reflector

reflector :
inherited

Type(s)

nodes

nodes :
inherited

Type(s)

attributes

attributes :
inherited

Type(s)

lineno

lineno :
inherited

Type(s)

tag

tag :
inherited

Type(s)

name

name :
inherited

Type(s)

sourceContext

sourceContext :
inherited

Type(s)