ProfileLogRoute

Type
Class
Namespace
Craft
Inherits
Craft\ProfileLogRoute » CProfileLogRoute » CWebLogRoute » CLogRoute » CComponent
Since
1.0

Class ProfileLogRoute

See also http://craftcms.com

View source

Public Properties

PropertyDescription
$categoriesmixed – Array of categories, or string list separated by comma or space.
$collapsedInFireBugboolean – Whether the log should be collapsed by default in Firebug.
$enabledboolean – Whether to enable this log route.
$exceptmixed – Array of categories, or string list separated by comma or space, to EXCLUDE from logs.
$filtermixed – The additional filter (eg {@link CLogFilter}) that can be applied to the log messages.
$groupByTokenboolean – Whether to aggregate results according to profiling tokens.
$ignoreAjaxInFireBugboolean – Whether the log should be ignored in FireBug for ajax calls.
$ignoreFlashInFireBugboolean – Whether the log should be ignored in FireBug for Flash/Flex calls.
$levelsstring – List of levels separated by comma or space.
$logsarray – The logs that are collected so far by this log route.
$showInFireBugboolean – Whether the log should be displayed in FireBug instead of browser window.

Public Methods

MethodDescription
__call()Calls the named method which is not a class method.
__get()Returns a property value, an event handler list or a behavior based on its name.
__isset()Checks if a property value is null.
__set()Sets value of a component property.
__unset()Sets a component property to be null.
asa()Returns the named behavior object.
attachBehavior()Attaches a behavior to this component.
attachBehaviors()Attaches a list of behaviors to the component.
attachEventHandler()Attaches an event handler to an event.
canGetProperty()Determines whether a property can be read.
canSetProperty()Determines whether a property can be set.
collectLogs()Retrieves filtered log messages from logger for further processing.
detachBehavior()Detaches a behavior from the component.
detachBehaviors()Detaches all behaviors from the component.
detachEventHandler()Detaches an existing event handler.
disableBehavior()Disables an attached behavior.
disableBehaviors()Disables all behaviors attached to this component.
enableBehavior()Enables an attached behavior.
enableBehaviors()Enables all behaviors attached to this component.
evaluateExpression()Evaluates a PHP expression or callback under the context of this component.
getEventHandlers()Returns the list of attached event handlers for an event.
getReport()
hasEvent()Determines whether an event is defined.
hasEventHandler()Checks whether the named event has attached handlers.
hasProperty()Determines whether a property is defined.
init()Initializes the route.
raiseEvent()Raises an event.
setReport()

Protected Methods

MethodDescription
aggregateResult()Aggregates the report result.
displayCallstack()Displays the callstack of the profiling procedures for display.
displaySummary()Displays the summary report of the profiling result.
formatLogMessage()Formats a log message given different fields.
processLogs()Processes log messages and sends them to specific destination.
render()

render()

View source

Arguments

  • $view
  • $data

Returns

mixed

Signature

protected mixed render ( $view, $data )