$collection public read-only property Collection instance. public yii\mongodb\file\Collection getCollection ( $db = null )
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.
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.
getName() public method public string getName ( )return string The user-friendly name of this exception
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 ( )
hasExplain() protected method protected boolean hasExplain ( )return boolean Whether the DB component has support for EXPLAIN queries
getProfileLogs() public method Returns all profile logs of the current request for this panel. public array getProfileLogs ( )
getName() public method public string getName ( )return string Name of the panel
canBeExplained() public static method Check if given query type can be explained. public static boolean canBeExplained ( $type )$type string Query type
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.
Page 219 of 633