Class yii\debug\Panel
| Inheritance | yii\debug\Panel » yii\base\Component |
|---|---|
| Subclasses | yii\debug\panels\AssetPanel, yii\debug\panels\ConfigPanel, yii\debug\panels\DbPanel, yii\debug\panels\LogPanel, yii\debug\panels\MailPanel, yii\debug\panels\ProfilingPanel, yii\debug\panels\RequestPanel, yii\debug\panels\RouterPanel, yii\debug\panels\TimelinePanel, yii\debug\panels\UserPanel |
| Available since version | 2.0 |
Panel is a base class for debugger panel classes. It defines how data should be collected, what should be displayed at debug toolbar and on debugger details view.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $actions | array | Array of actions to add to the debug modules default controller. | yii\debug\Panel |
| $data | mixed | Data associated with panel | yii\debug\Panel |
| $id | string | Panel unique identifier. | yii\debug\Panel |
| $module | yii\debug\Module | yii\debug\Panel | |
| $tag | string | Request data set identifier. | yii\debug\Panel |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getDetail() | yii\debug\Panel | |
| getName() | yii\debug\Panel | |
| getSummary() | yii\debug\Panel | |
| getTraceLine() | Returns a trace line | yii\debug\Panel |
| getUrl() | yii\debug\Panel | |
| load() | Loads data into the panel | yii\debug\Panel |
| save() | Saves data to be later used in debugger detail view. | yii\debug\Panel |
Property Details
Array of actions to add to the debug modules default controller. This array will be merged with all other panels actions property. See \yii\base\Controller::actions() for the format.
Data associated with panel
Panel unique identifier. It is set automatically by the container module.
Request data set identifier.
Method Details
| public string getDetail ( ) | ||
| return | string | Content that is displayed in debugger detail view |
|---|---|---|
| public string getName ( ) | ||
| return | string | Name of the panel |
|---|---|---|
| public string getSummary ( ) | ||
| return | string | Content that is displayed at debug toolbar |
|---|---|---|
Returns a trace line
| public string getTraceLine ( $options ) | ||
| $options | array | The array with trace |
| return | string | The trace line |
|---|---|---|
| public string getUrl ( $additionalParams = null ) | ||
| $additionalParams | null|array | Optional additional parameters to add to the route |
| return | string | URL pointing to panel detail view |
|---|---|---|
Loads data into the panel
| public void load ( $data ) | ||
| $data | mixed | |
Saves data to be later used in debugger detail view.
This method is called on every page where debugger is enabled.
| public mixed save ( ) | ||
| return | mixed | Data to be saved |
|---|---|---|