\WebinoDraw\InstructionsProfilingInstructionsRenderer

Class ProfilingInstructionsRenderer

Summary

Methods
Properties
Constants
__construct()
render()
subInstructions()
expandInstructions()
setProfiler()
No public properties found
DEFAULT_DRAW_HELPER
createNodeSpec()
drawNodes()
resolveIsNodeDisabled()
resolveIsEmptyNodes()
getProfiler()
$drawHelpers
$locator
$nodeListFactory
$instructionsFactory
$drawOptions
$profiler
N/A
No private methods found
No private properties found
N/A

Constants

DEFAULT_DRAW_HELPER

DEFAULT_DRAW_HELPER

Makes the helper setting optional for common use cases

Properties

Methods

__construct()

__construct(object|\WebinoDraw\Draw\HelperPluginManager  $drawHelpers, \WebinoDraw\Dom\Locator  $locator, \WebinoDraw\Dom\Factory\NodeListFactory  $nodeListFactory, \WebinoDraw\Factory\InstructionsFactory  $instructionsFactory, object|\WebinoDraw\Options\ModuleOptions  $drawOptions) 

Parameters

object|\WebinoDraw\Draw\HelperPluginManager $drawHelpers
\WebinoDraw\Dom\Locator $locator
\WebinoDraw\Dom\Factory\NodeListFactory $nodeListFactory
\WebinoDraw\Factory\InstructionsFactory $instructionsFactory
object|\WebinoDraw\Options\ModuleOptions $drawOptions

render()

render(\WebinoDraw\Dom\NodeInterface  $node, array|\WebinoDraw\Instructions\InstructionsInterface  $instructions, array  $vars) 

Render the DOMElement ownerDocument

{@inheritDocs}

Parameters

\WebinoDraw\Dom\NodeInterface $node

DOMNode

array|\WebinoDraw\Instructions\InstructionsInterface $instructions

Draw instructions

array $vars

Variables to render

Throws

\WebinoDraw\Exception\InvalidArgumentException

subInstructions()

subInstructions(array|\WebinoDraw\Dom\NodeList  $nodes, array  $instructions, \ArrayObject  $translation) : $this

Parameters

array|\WebinoDraw\Dom\NodeList $nodes
array $instructions
\ArrayObject $translation

Returns

$this

expandInstructions()

expandInstructions(array  $spec, \WebinoDraw\VarTranslator\Translation  $translation = null) : $this

Parameters

array $spec
\WebinoDraw\VarTranslator\Translation $translation

Returns

$this

createNodeSpec()

createNodeSpec(array  $specs) : array

Parameters

array $specs

Returns

array

drawNodes()

drawNodes(\DOMNodeList  $nodes, string  $helper, array  $spec, array  $vars) 

Parameters

\DOMNodeList $nodes
string $helper
array $spec
array $vars

resolveIsNodeDisabled()

resolveIsNodeDisabled(\WebinoDraw\Dom\NodeInterface|null  $node, array  $spec) : boolean

Parameters

\WebinoDraw\Dom\NodeInterface|null $node
array $spec

Returns

boolean

resolveIsEmptyNodes()

resolveIsEmptyNodes(\DOMNodeList  $nodes = null) : boolean

Parameters

\DOMNodeList $nodes

Returns

boolean