Class yii\mongodb\debug\ExplainAction
Inheritance | yii\mongodb\debug\ExplainAction » yii\base\Action |
---|---|
Available since version | 2.0.5 |
ExplainAction provides EXPLAIN information for MongoDB queries
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$panel | yii\mongodb\debug\MongoDbPanel | Related debug toolbar panel | yii\mongodb\debug\ExplainAction |
Public Methods
Method | Description | Defined By |
---|---|---|
run() | Runs the explain action | yii\mongodb\debug\ExplainAction |
Protected Methods
Method | Description | Defined By |
---|---|---|
getCursorFromQueryLog() | Create MongoCursor from string query log | yii\mongodb\debug\ExplainAction |
prepareQuery() | Prepare query for using in MongoCursor. | yii\mongodb\debug\ExplainAction |
Property Details
Method Details
Create MongoCursor from string query log
protected \MongoCursor|null getCursorFromQueryLog ( $queryString ) | ||
$queryString | string |
Prepare query for using in MongoCursor.
Converts array contains $id
key into \yii\mongodb\debug\MongoId instance.
If array given, each element of it will be processed.
protected array|string prepareQuery ( $query ) | ||
$query | mixed | Raw query |
return | array|string | Prepared query |
---|
Runs the explain action
public string run ( $seq, $tag ) | ||
$seq | integer | |
$tag | string | |
return | string | Explain result content |
---|---|---|
throws | \yii\web\HttpException | if requested log not found |