Diag
FinalYes
Table of Contents
Methods
- activate() : $this
- Activate log.
- collectDebugInfo() : void
- Collects debug info.
- deactivate() : $this
- Deactivate log.
- getInstance() : Diag
- Gets instance of Diag.
- log() : void
- Logs data in common log (@see AddMessage2Log).
- logDebugInfo() : void
- Logs debug info.
- setExclusiveUserId() : $this
- Sets user id who can use class Diag. If set null then everybody can use it.
- setShowOnDisplay() : $this
- Sets value to status of show log message on display.
Methods
activate()
Activate log.
public
activate() : $this
Return values
$thiscollectDebugInfo()
Collects debug info.
public
collectDebugInfo(mixed $uniqueId) : void
Parameters
- $uniqueId : mixed
-
Id of segment.
deactivate()
Deactivate log.
public
deactivate() : $this
Return values
$thisgetInstance()
Gets instance of Diag.
public
static getInstance() : Diag
Return values
Diaglog()
Logs data in common log (@see AddMessage2Log).
public
log(mixed $data) : void
Parameters
- $data : mixed
-
Mixed data to log.
logDebugInfo()
Logs debug info.
public
logDebugInfo(mixed $uniqueId[, null $label = null ]) : void
Parameters
- $uniqueId : mixed
-
Id of segment.
- $label : null = null
-
Label for human.
Tags
setExclusiveUserId()
Sets user id who can use class Diag. If set null then everybody can use it.
public
setExclusiveUserId(int $exclusiveUserId) : $this
Parameters
- $exclusiveUserId : int
-
Id of user.
Return values
$thissetShowOnDisplay()
Sets value to status of show log message on display.
public
setShowOnDisplay(bool $showOnDisplay) : $this
Parameters
- $showOnDisplay : bool
-
Value.