PHP Класс Devise\Pages\Interpreter\Modifiers\AddPlaceHolderTags

Наследование: extends PhpParser\NodeVisitorAbstract
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( DeviseParser $DeviseParser ) [__construct description]
afterTraverse ( array $nodes ) : array Runs after all the nodes have been examined

Защищенные методы

Метод Описание
createPlaceHolderNodeFromTags ( array $tags ) : PhpParser\Node\Stmt\InlineHTML Create the placeholder nodes from the listed tags
findTagsInsideOfCondition ( PhpParser\Node\Stmt\If_ $node ) : array Gets a list of tags inside of a condition
findTagsInsideOfLoop ( $node ) : array Returns a list of tags inside of loop
findTagsInsideOfNode ( PhpParser\Node $node ) : array Gets a list of tags inside of a node
findTagsInsideOfStmts ( array $stmts ) : array Finds all the tags inside of stmts and also recursively modifies the AST putting placeholder tags all the way down in the tree (for nested loops and conditions)

Описание методов

__construct() публичный Метод

[__construct description]
public __construct ( DeviseParser $DeviseParser )
$DeviseParser Devise\Pages\Interpreter\DeviseParser

afterTraverse() публичный Метод

Runs after all the nodes have been examined
public afterTraverse ( array $nodes ) : array
$nodes array
Результат array

createPlaceHolderNodeFromTags() защищенный Метод

Create the placeholder nodes from the listed tags
protected createPlaceHolderNodeFromTags ( array $tags ) : PhpParser\Node\Stmt\InlineHTML
$tags array
Результат PhpParser\Node\Stmt\InlineHTML

findTagsInsideOfCondition() защищенный Метод

Gets a list of tags inside of a condition
protected findTagsInsideOfCondition ( PhpParser\Node\Stmt\If_ $node ) : array
$node PhpParser\Node\Stmt\If_
Результат array

findTagsInsideOfLoop() защищенный Метод

Returns a list of tags inside of loop
protected findTagsInsideOfLoop ( $node ) : array
Результат array

findTagsInsideOfNode() защищенный Метод

Gets a list of tags inside of a node
protected findTagsInsideOfNode ( PhpParser\Node $node ) : array
$node PhpParser\Node
Результат array

findTagsInsideOfStmts() защищенный Метод

Finds all the tags inside of stmts and also recursively modifies the AST putting placeholder tags all the way down in the tree (for nested loops and conditions)
protected findTagsInsideOfStmts ( array $stmts ) : array
$stmts array
Результат array