mongodb\file\ActiveQuery $collection

$collection public read-only property Collection instance. public yii\mongodb\file\Collection getCollection ( $db = null )

mongodb\file\ActiveQuery all()

all() public method Executes query and returns all results as an array. public array|yii\mongodb\file\ActiveRecord all ( $db = null )$db yii\mongodb\Connection The Mongo connection used to execute the query. If null, the Mongo connection returned by $modelClass will be used. return array|yii\mongodb\file\ActiveRecord The query results. If the query results in nothing, an empty array will be returned.

mongodb\file\ActiveQuery buildCursor()

buildCursor() public method Builds the Mongo cursor for this query. public \MongoDB\Driver\Cursor buildCursor ( $db = null )$db yii\mongodb\Connection The database connection used to execute the query. return \MongoDB\Driver\Cursor Mongo cursor instance.

mongodb\Exception getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

mongodb\debug\MongoDbPanel init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

mongodb\debug\MongoDbPanel hasExplain()

hasExplain() protected method protected boolean hasExplain ( )return boolean Whether the DB component has support for EXPLAIN queries

mongodb\debug\MongoDbPanel getProfileLogs()

getProfileLogs() public method Returns all profile logs of the current request for this panel. public array getProfileLogs ( )

mongodb\debug\MongoDbPanel getName()

getName() public method public string getName ( )return string Name of the panel

mongodb\debug\MongoDbPanel canBeExplained()

canBeExplained() public static method Check if given query type can be explained. public static boolean canBeExplained ( $type )$type string Query type

mongodb\debug\MongoDbPanel getQueryType()

getQueryType() protected method Returns database query type. protected string getQueryType ( $timing )$timing string Timing procedure string return string Query type such as select, insert, delete, etc.