HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
Yii2Debug Class Reference

Public Member Functions

 init ()
 getTag ()
 checkAccess ()
 getLock ($tag)
 setLock ($tag, $value)

Static Public Member Functions

static dump ($data)
static prepareData ($data)

Public Attributes

 $allowedIPs = array('127.0.0.1', '::1')
 $accessExpression
 $panels = array()
 $logPath
 $historySize = 50
 $enabled = true
 $moduleId = 'debug'
 $internalUrls = true
 $highlightCode = true
 $showConfig = false
 $hiddenConfigOptions

Protected Member Functions

 corePanels ()
 coreUrlRules ()
 initToolbar ()
 onEndRequest ($event)
 processDebug ()
 resizeHistory (&$manifest)

Private Attributes

 $_tag
 $_locks

Detailed Description

Definition at line 12 of file Yii2Debug.php.

Member Function Documentation

Yii2Debug::checkAccess ( )

Check access rights.

Returns
bool

Definition at line 286 of file Yii2Debug.php.

Here is the caller graph for this function:

Yii2Debug::corePanels ( )
protected
Returns
array default panels

Definition at line 130 of file Yii2Debug.php.

Here is the caller graph for this function:

Yii2Debug::coreUrlRules ( )
protected

Definition at line 151 of file Yii2Debug.php.

Here is the caller graph for this function:

static Yii2Debug::dump (   $data)
static

Dump variable to debug log.

Parameters
mixed$data

Definition at line 312 of file Yii2Debug.php.

Yii2Debug::getLock (   $tag)
Parameters
string$tag
Returns
bool

Definition at line 326 of file Yii2Debug.php.

Here is the caller graph for this function:

Yii2Debug::getTag ( )
Returns
string current page tag

Definition at line 121 of file Yii2Debug.php.

Here is the caller graph for this function:

Yii2Debug::init ( )

Panel initialization. Generate unique tag for page. Attach panels, log watcher. Register scripts for printing debug panel.

Definition at line 77 of file Yii2Debug.php.

Here is the call graph for this function:

Yii2Debug::initToolbar ( )
protected

Register debug panel scripts.

Definition at line 165 of file Yii2Debug.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2Debug::onEndRequest (   $event)
protected
Parameters
CEvent$event

Definition at line 206 of file Yii2Debug.php.

Here is the call graph for this function:

static Yii2Debug::prepareData (   $data)
static

Convert data to plain array in recursive manner.

Parameters
mixed$data
Returns
array

Definition at line 362 of file Yii2Debug.php.

Here is the caller graph for this function:

Yii2Debug::processDebug ( )
protected

Log processing routine.

Definition at line 214 of file Yii2Debug.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2Debug::resizeHistory ( $manifest)
protected

Debug files rotation according to ::$historySize.

Parameters
$manifest

Definition at line 262 of file Yii2Debug.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2Debug::setLock (   $tag,
  $value 
)
Parameters
string$tag
bool$value

Definition at line 343 of file Yii2Debug.php.

Here is the call graph for this function:

Member Data Documentation

Yii2Debug::$_locks
private

Definition at line 320 of file Yii2Debug.php.

Yii2Debug::$_tag
private

Definition at line 71 of file Yii2Debug.php.

Yii2Debug::$accessExpression

Definition at line 25 of file Yii2Debug.php.

Yii2Debug::$allowedIPs = array('127.0.0.1', '::1')

Definition at line 21 of file Yii2Debug.php.

Yii2Debug::$enabled = true

Definition at line 45 of file Yii2Debug.php.

Yii2Debug::$hiddenConfigOptions
Initial value:
array(
'components/db/username',
'components/db/password',
)

Definition at line 66 of file Yii2Debug.php.

Yii2Debug::$highlightCode = true

Definition at line 57 of file Yii2Debug.php.

Yii2Debug::$historySize = 50

Definition at line 41 of file Yii2Debug.php.

Yii2Debug::$internalUrls = true

Definition at line 53 of file Yii2Debug.php.

Yii2Debug::$logPath

Definition at line 36 of file Yii2Debug.php.

Yii2Debug::$moduleId = 'debug'

Definition at line 49 of file Yii2Debug.php.

Yii2Debug::$panels = array()

Definition at line 32 of file Yii2Debug.php.

Yii2Debug::$showConfig = false

Definition at line 61 of file Yii2Debug.php.


The documentation for this class was generated from the following file: