PHP 클래스 Devise\Pages\Interpreter\Modifiers\AddPlaceHolderTags

상속: extends PhpParser\NodeVisitorAbstract
파일 보기 프로젝트 열기: devisephp/cms

공개 메소드들

메소드 설명
__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