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

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

Защищенные свойства (Protected)

Свойство Тип Описание
$registrations array Registrations are the tags that have been registered from this node's traversal

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

Метод Описание
__construct ( DeviseParser $DeviseParser ) Create a new RegisterDeviseTags visitor
afterTraverse ( array $nodes ) : array Runs after all the nodes have been examined
enterNode ( PhpParser\Node $node ) : void We are examine this node for data-devise tags inside of the html. We only need to check out InlineHTML nodes

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

Метод Описание
addDvsPageDataInitializeStmt ( ) [addDvsPageDataInitializeStmt description]
getAppMakeRegisterString ( DeviseTag $tag ) : string Creates a string of App::make register statements for us
getNewDeviseTagString ( DeviseTag $tag ) : string Creates a string from tag parameters which will be used to rewrite the data-devise html
parseNode ( string $html ) : string Parses the node of html for us
registerDeviseTag ( DeviseTag $tag, $html ) : string Register a devise tag, and also replaces the data-devise html with the cid stuff

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

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

Create a new RegisterDeviseTags visitor
public __construct ( DeviseParser $DeviseParser )
$DeviseParser Devise\Pages\Interpreter\DeviseParser

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

[addDvsPageDataInitializeStmt description]

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

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

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

We are examine this node for data-devise tags inside of the html. We only need to check out InlineHTML nodes
public enterNode ( PhpParser\Node $node ) : void
$node PhpParser\Node
Результат void

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

Creates a string of App::make register statements for us
protected getAppMakeRegisterString ( DeviseTag $tag ) : string
$tag Devise\Pages\Interpreter\DeviseTag
Результат string

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

Creates a string from tag parameters which will be used to rewrite the data-devise html
protected getNewDeviseTagString ( DeviseTag $tag ) : string
$tag Devise\Pages\Interpreter\DeviseTag
Результат string

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

Parses the node of html for us
protected parseNode ( string $html ) : string
$html string
Результат string

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

Register a devise tag, and also replaces the data-devise html with the cid stuff
protected registerDeviseTag ( DeviseTag $tag, $html ) : string
$tag Devise\Pages\Interpreter\DeviseTag
Результат string

Описание свойств

$registrations защищенное свойство

Registrations are the tags that have been registered from this node's traversal
protected array $registrations
Результат array