Properties

$replaceFunction

$replaceFunction : callable

Type

callable

$recursiveReplaceFunction

$recursiveReplaceFunction : callable

Type

callable

$nonDeepOptions

$nonDeepOptions : array<mixed,string>

Type

array<mixed,string>

$container

$container : 

Type

$options

$options : \ArrayObject

Type

\ArrayObject

$optionNameHandlers

$optionNameHandlers : array

Type

array

$startTime

$startTime : integer

Type

integer

$initialMemoryUsage

$initialMemoryUsage : integer

Type

integer

$nodesRegister

$nodesRegister : \SplObjectStorage

Type

\SplObjectStorage

$eventDump

$eventDump : callable

Type

callable

$profilers

$profilers : array

Type

array

$profilersIndex

$profilersIndex : integer

Type

integer

Methods

getEventListeners()

getEventListeners() 

attachEvents()

attachEvents() 

detachEvents()

detachEvents() 

getOptions()

getOptions() 

{@inheritdoc}

setOptions()

setOptions(  $options) 

{@inheritdoc}

Parameters

$options

setOptionsRecursive()

setOptionsRecursive(  $options) 

{@inheritdoc}

Parameters

$options

setOptionsDefaults()

setOptionsDefaults(  $options = null) 

{@inheritdoc}

Parameters

$options

hasOption()

hasOption(  $name) 

{@inheritdoc}

Parameters

$name

getOption()

getOption(  $name) 

{@inheritdoc}

Parameters

$name

setOption()

setOption(  $name,   $value) 

{@inheritdoc}

Parameters

$name
$value

unsetOption()

unsetOption(  $name) 

{@inheritdoc}

Parameters

$name

addOptionNameHandlers()

addOptionNameHandlers(callable  $handler) 

Parameters

callable $handler

resetOptions()

resetOptions() 

initialize()

initialize() 

reset()

reset() 

kill()

kill() 

isAlive()

isAlive() 

getFunctionDump()

getFunctionDump(mixed  $value, callable  $function = 'var_dump') : string

Catch output of a dump function and return it as string.

Parameters

mixed $value
callable $function

Returns

string

getEventDump()

getEventDump(\Phug\Event  $event) : string

Parameters

\Phug\Event $event

Returns

string

getDebugId()

getDebugId(  $nodeId) 

Parameters

$nodeId

recordDisplayEvent()

recordDisplayEvent(integer|null  $nodeId) 

Parameters

integer|null $nodeId

Throws

\Phug\Renderer\Profiler\ProfilerException
\Phug\Renderer\Profiler\ProfilerLocatedException

recordProfilerDisplayEvent()

recordProfilerDisplayEvent(integer|null  $debugId) 

Parameters

integer|null $debugId

Throws

\Phug\Renderer\Profiler\ProfilerException
\Phug\Renderer\Profiler\ProfilerLocatedException

handleOptionName()

handleOptionName(string  $name) : string

Parameters

string $name

Returns

string

filterTraversable()

filterTraversable(  $values) 

Parameters

$values

setOptionArrays()

setOptionArrays(array  $arrays, string  $functionName) : $this

Parameters

array $arrays
string $functionName

Returns

$this

mergeOptionValue()

mergeOptionValue(  $name,   $current,   $addedValue,   $functionName) 

Parameters

$name
$current
$addedValue
$functionName

setDefaultOption()

setDefaultOption(  $key,   $value) 

Parameters

$key
$value

withVariableReference()

withVariableReference(mixed  $variable,   $name, callable  $callback) : \Phug\Util\Partial\&$options

Parameters

mixed $variable
$name
callable $callback

Returns

\Phug\Util\Partial\&$options

withOptionReference()

withOptionReference(  $name, callable  $callback) : \Phug\Util\Partial\&$options

Parameters

$name
callable $callback

Returns

\Phug\Util\Partial\&$options

cleanupProfilerNodes()

cleanupProfilerNodes() 

appendParam()

appendParam(\Phug\Event  $event,   $key,   $value) 

Parameters

\Phug\Event $event
$key
$value

appendNode()

appendNode(\Phug\Event  $event,   $node) 

Parameters

\Phug\Event $event
$node

getException()

getException(\Phug\Event  $event,   $message) 

Parameters

\Phug\Event $event
$message

record()

record(\Phug\Event  $event) 

Parameters

\Phug\Event $event

Throws

\Phug\Renderer\Profiler\ProfilerException
\Phug\Renderer\Profiler\ProfilerLocatedException

renderProfile()

renderProfile() 

getCompilerEventListeners()

getCompilerEventListeners() 

getFormatterEventListeners()

getFormatterEventListeners() 

getParserEventListeners()

getParserEventListeners() 

getLexerEventListeners()

getLexerEventListeners()