phpDocumentor

Factory
in

Table of Contents

createAnchorNode()  : AnchorNode
createBlockNode()  : BlockNode
createCallableNode()  : CallableNode
createCodeNode()  : CodeNode
createDocumentNode()  : DocumentNode
createDummyNode()  : DummyNode
createFigureNode()  : FigureNode
createImageNode()  : ImageNode
createListNode()  : ListNode
createMainNode()  : MainNode
createMetaNode()  : MetaNode
createParagraphNode()  : ParagraphNode
createQuoteNode()  : QuoteNode
createRawNode()  : RawNode
Creates a node that returns the raw output from the given callable.
createSectionBeginNode()  : SectionBeginNode
createSectionEndNode()  : SectionEndNode
createSeparatorNode()  : SeparatorNode
createTitleNode()  : TitleNode
createTocNode()  : TocNode
createWrapperNode()  : WrapperNode

Methods

createAnchorNode()

public createAnchorNode([string|null $value = null ]) : AnchorNode
Parameters
$value : string|null = null
Return values
AnchorNode

createBlockNode()

public createBlockNode(array<string|int, string> $lines) : BlockNode
Parameters
$lines : array<string|int, string>
Return values
BlockNode

createCodeNode()

public createCodeNode(array<string|int, string> $lines) : CodeNode
Parameters
$lines : array<string|int, string>
Return values
CodeNode

createDummyNode()

public createDummyNode(array<string|int, mixed> $data) : DummyNode
Parameters
$data : array<string|int, mixed>
Return values
DummyNode

createImageNode()

public createImageNode(string $url[, array<string|int, string> $options = [] ]) : ImageNode
Parameters
$url : string
$options : array<string|int, string> = []
Return values
ImageNode

createMetaNode()

public createMetaNode(string $key, string $value) : MetaNode
Parameters
$key : string
$value : string
Return values
MetaNode

createRawNode()

Creates a node that returns the raw output from the given callable.

public createRawNode(callable $value) : RawNode

Because the parsing process and the rendering process is separate, and the twig environment may not yet exist during parsing, the given argument is a callable that will be called upon rendering.

Parameters
$value : callable

function that will return the rendered representation of this node

Return values
RawNode

createTitleNode()

public createTitleNode(Node $value, int $level, string $token) : TitleNode
Parameters
$value : Node
$level : int
$token : string
Return values
TitleNode

createTocNode()

public createTocNode(Environment $environment, array<string|int, string> $files, array<string|int, string> $options) : TocNode
Parameters
$environment : Environment
$files : array<string|int, string>
$options : array<string|int, string>
Return values
TocNode

createWrapperNode()

public createWrapperNode(Node|null $node[, string|callable $before = '' ][, string|callable $after = '' ]) : WrapperNode
Parameters
$node : Node|null
$before : string|callable = ''
$after : string|callable = ''
Return values
WrapperNode

Search results