SERVICE
SERVICE
Application service name
Class DrawService
$options : \WebinoDraw\Options\ModuleOptions
$instructionsRenderer : \WebinoDraw\Instructions\InstructionsRenderer
__construct(object|\WebinoDraw\Options\ModuleOptions $options, object|\WebinoDraw\Instructions\InstructionsRenderer $instructionsRenderer)
object|\WebinoDraw\Options\ModuleOptions | $options | |
object|\WebinoDraw\Instructions\InstructionsRenderer | $instructionsRenderer |
getOptions() : \WebinoDraw\Options\ModuleOptions
createDom(string $xhtml, boolean $isXml = false) : \WebinoDraw\Dom\Document
Create DOM document for drawing
string | $xhtml | XHTML valid string |
boolean | $isXml | Load as XML |
createXmlDom(string $xml) : \WebinoDraw\Dom\Document
string | $xml |
drawDom(\WebinoDraw\Dom\Element $element, array|\WebinoDraw\Instructions\InstructionsInterface $instructions, array $vars) : self
\WebinoDraw\Dom\Element | $element | Element with owner document |
array|\WebinoDraw\Instructions\InstructionsInterface | $instructions | Options how to render |
array | $vars | Variables to substitute instructions parameters |
draw(string $xhtml, array|\WebinoDraw\Instructions\InstructionsInterface $instructions, array $vars, boolean $isXml = false) : string
Render XHTML string
string | $xhtml | XHTML template |
array|\WebinoDraw\Instructions\InstructionsInterface | $instructions | Options how to render |
array | $vars | Data variables |
boolean | $isXml | Load as XML |
Rendered HTML
drawXml(string $xhtml, array|\WebinoDraw\Instructions\InstructionsInterface $instructions, array $vars) : string
Render XML string
string | $xhtml | XHTML template |
array|\WebinoDraw\Instructions\InstructionsInterface | $instructions | Options how to render |
array | $vars | Data variables |
Rendered XML