hasModule()
hasModule(  $className) 
                
Parameters
| $className | 
Interface for EventManager.
getEventListeners() : array<mixed,\Phug\Event\ListenerQueue>
Returns current event listeners by event name.
mergeEventListeners(array<mixed,\Phug\Event\ListenerQueue>  $eventListeners) : boolean
                Merge current events listeners with a given list.
| array<mixed,\Phug\Event\ListenerQueue> | $eventListeners | event listeners by event name | 
true on success false on failure
attach(string $event, callable $callback, integer $priority) : boolean
Attaches a listener to an event.
| string | $event | the event to attach too | 
| callable | $callback | a callable function | 
| integer | $priority | the priority at which the $callback executed | 
true on success false on failure
trigger(string|\Phug\EventInterface $event, object|string $target = null, array|object $argv = array()) : mixed
Trigger an event.
Can accept an EventInterface or will create one if not passed
| string|\Phug\EventInterface | $event | |
| object|string | $target | |
| array|object | $argv | 
getParser() : \Phug\Parser
getFormatter() : \Phug\Formatter
getLayout() : \Phug\Compiler\Layout
setLayout(\Phug\Compiler\Layout  $layout) : mixed
                
| \Phug\Compiler\Layout | $layout | 
getParentCompiler() : \Phug\CompilerInterface|null
setNodeCompiler(string $className, \Phug\Compiler\NodeCompilerInterface $handler) : null|\Phug\Formatter\ElementInterface
| string | $className | |
| \Phug\Compiler\NodeCompilerInterface | $handler | 
replaceBlock(\Phug\Compiler\Element\BlockElement $block, array $children = null)
| \Phug\Compiler\Element\BlockElement | $block | |
| array | $children | 
compileNode(\Phug\Parser\NodeInterface $node, \Phug\Formatter\ElementInterface|null $parent = null) : null|\Phug\Formatter\ElementInterface
| \Phug\Parser\NodeInterface | $node | |
| \Phug\Formatter\ElementInterface|null | $parent | 
compileIntoElement(string $input, string $path = null) : null|\Phug\Formatter\ElementInterface
| string | $input | |
| string | $path | 
compileDocument(string $input, string $path = null) : null|\Phug\Formatter\ElementInterface
| string | $input | pug input | 
| string | $path | optional path of the compiled source | 
compileFileIntoElement(string  $path) : null|\Phug\Formatter\ElementInterface
                
| string | $path | 
getImportNode() : \Phug\Parser\NodeInterface
setImportNode(\Phug\Parser\NodeInterface  $defaultYieldChildren) : $this
                
| \Phug\Parser\NodeInterface | $defaultYieldChildren | 
setYieldNode(\Phug\Parser\NodeInterface  $yieldNode) : $this
                
| \Phug\Parser\NodeInterface | $yieldNode | 
getYieldNode() : \Phug\Parser\NodeInterface
throwException(string $message, \Phug\Parser\NodeInterface $node = null, integer $code, \Throwable $previous = null)
| string | $message | A meaningful error message | 
| \Phug\Parser\NodeInterface | $node | Node generating the error | 
| integer | $code | Error code | 
| \Throwable | $previous | Source error | 
assert(boolean $condition, string $message, \Phug\Parser\NodeInterface $node = null, integer $code, \Throwable $previous = null)
| boolean | $condition | Assertion to verify | 
| string | $message | Error message to throw if assertion fails | 
| \Phug\Parser\NodeInterface | $node | Node generating the error | 
| integer | $code | Error code | 
| \Throwable | $previous | Source error |