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 —createCallableNode()
public
createCallableNode(callable $callable) : CallableNode
Parameters
- $callable : callable
Return values
CallableNode —createCodeNode()
public
createCodeNode(array<string|int, string> $lines) : CodeNode
Parameters
- $lines : array<string|int, string>
Return values
CodeNode —createDocumentNode()
public
createDocumentNode(Environment $environment) : DocumentNode
Parameters
- $environment : Environment
Return values
DocumentNode —createDummyNode()
public
createDummyNode(array<string|int, mixed> $data) : DummyNode
Parameters
- $data : array<string|int, mixed>
Return values
DummyNode —createFigureNode()
public
createFigureNode(ImageNode $image[, Node|null $document = null ]) : FigureNode
Parameters
Return values
FigureNode —createImageNode()
public
createImageNode(string $url[, array<string|int, string> $options = [] ]) : ImageNode
Parameters
- $url : string
- $options : array<string|int, string> = []
Return values
ImageNode —createListNode()
public
createListNode() : ListNode
Return values
ListNode —createMainNode()
public
createMainNode() : MainNode
Return values
MainNode —createMetaNode()
public
createMetaNode(string $key, string $value) : MetaNode
Parameters
- $key : string
- $value : string
Return values
MetaNode —createParagraphNode()
public
createParagraphNode(SpanNode $span) : ParagraphNode
Parameters
- $span : SpanNode
Return values
ParagraphNode —createQuoteNode()
public
createQuoteNode(DocumentNode $documentNode) : QuoteNode
Parameters
- $documentNode : DocumentNode
Return values
QuoteNode —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 —createSectionBeginNode()
public
createSectionBeginNode(TitleNode $titleNode) : SectionBeginNode
Parameters
- $titleNode : TitleNode
Return values
SectionBeginNode —createSectionEndNode()
public
createSectionEndNode(TitleNode $titleNode) : SectionEndNode
Parameters
- $titleNode : TitleNode
Return values
SectionEndNode —createSeparatorNode()
public
createSeparatorNode(int $level) : SeparatorNode
Parameters
- $level : int
Return values
SeparatorNode —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 = ''