HumHub Documentation (unofficial)

Parser
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$blocks  : mixed
$blockStack  : mixed
$embeddedTemplates  : mixed
$env  : mixed
$expressionParser  : mixed
$importedSymbols  : mixed
$macros  : mixed
$parent  : mixed
$stack  : mixed
$stream  : mixed
$traits  : mixed
$varNameSalt  : mixed
$visitors  : mixed

Methods

__construct()  : mixed
addImportedSymbol()  : void
addTrait()  : void
embedTemplate()  : mixed
getBlock()  : Node
getBlockStack()  : array<string|int, mixed>
getCurrentToken()  : Token
getExpressionParser()  : ExpressionParser
getImportedSymbol()  : mixed
getParent()  : Node|null
getStream()  : TokenStream
getVarName()  : string
hasBlock()  : bool
hasMacro()  : bool
hasTraits()  : bool
isMainScope()  : bool
parse()  : ModuleNode
peekBlockStack()  : mixed
popBlockStack()  : void
popLocalScope()  : void
pushBlockStack()  : void
pushLocalScope()  : void
setBlock()  : void
setMacro()  : void
setParent()  : void
subparse()  : Node
filterBodyNodes()  : Node|null

Properties

$blockStack

private mixed $blockStack

$embeddedTemplates

private mixed $embeddedTemplates = []

$expressionParser

private mixed $expressionParser

$importedSymbols

private mixed $importedSymbols

$stack

private mixed $stack = []

$varNameSalt

private mixed $varNameSalt = 0

$visitors

private mixed $visitors

Methods

addImportedSymbol()

public addImportedSymbol(string $type, string $alias[, string|null $name = null ][, AbstractExpression|null $node = null ]) : void
Parameters
$type : string
$alias : string
$name : string|null = null
$node : AbstractExpression|null = null

addTrait()

public addTrait(mixed $trait) : void
Parameters
$trait : mixed

getBlock()

public getBlock(string $name) : Node
Parameters
$name : string
Return values
Node

getBlockStack()

public getBlockStack() : array<string|int, mixed>
Return values
array<string|int, mixed>

getImportedSymbol()

public getImportedSymbol(string $type, string $alias) : mixed
Parameters
$type : string
$alias : string

getVarName()

public getVarName() : string
Return values
string

hasBlock()

public hasBlock(string $name) : bool
Parameters
$name : string
Return values
bool

hasMacro()

public hasMacro(string $name) : bool
Parameters
$name : string
Return values
bool

hasTraits()

public hasTraits() : bool
Return values
bool

isMainScope()

public isMainScope() : bool
Return values
bool

peekBlockStack()

public peekBlockStack() : mixed

popBlockStack()

public popBlockStack() : void

popLocalScope()

public popLocalScope() : void

pushBlockStack()

public pushBlockStack(mixed $name) : void
Parameters
$name : mixed

pushLocalScope()

public pushLocalScope() : void

setParent()

public setParent(Node|null $parent) : void
Parameters
$parent : Node|null

subparse()

public subparse(mixed $test[, bool $dropNeedle = false ]) : Node
Parameters
$test : mixed
$dropNeedle : bool = false
Return values
Node

filterBodyNodes()

private filterBodyNodes(Node $node[, bool $nested = false ]) : Node|null
Parameters
$node : Node
$nested : bool = false
Return values
Node|null

        
On this page

Search results