mongodb\rbac\MongoDbManager $cacheKey

$cacheKey public property The key used to store RBAC data in cache See also $cache. public string $cacheKey = 'rbac'

mongodb\rbac\MongoDbManager $assignmentCollection

$assignmentCollection public property The name of the collection storing authorization item assignments. Defaults to "auth_assignment". public string|array $assignmentCollection = 'auth_assignment'

mongodb\QueryBuilder mapReduce()

mapReduce() public method Generates 'map-reduce' command. See also https://docs.mongodb.com/manual/core/map-reduce/. public array mapReduce ( $collectionName, $map, $reduce, $out, $condition = [], $options = [] )$collectionName string Collection name. $map \MongoDB\BSON\Javascript|string Function, which emits map data from collection. Argument will be automatically cast to \MongoDB\BSON\Javascript. $reduce \MongoDB\BSON\Javascript|string Function that takes two arguments (the map k

mongodb\QueryBuilder __construct()

__construct() public method Constructor. public void __construct ( $connection, $config = [] )$connection yii\mongodb\Connection The database connection. $config array Name-value pairs that will be used to initialize the object properties

mongodb\QueryBuilder normalizeConditionKeyword()

normalizeConditionKeyword() protected method Converts "\yii\db*" quick condition keyword into actual Mongo condition keyword. protected string normalizeConditionKeyword ( $key )$key string Raw condition key. return string Actual key.

mongodb\QueryBuilder listIndexes()

listIndexes() public method Generates list indexes command. public array listIndexes ( $collectionName, $options = [] )$collectionName string Collection name $options array Command options. Available options are: maxTimeMS: integer, max execution time in ms. return array Command document.

mongodb\QueryBuilder listDatabases()

listDatabases() public method Generates 'listDatabases' command. public array listDatabases ( $condition = [], $options = [] )$condition array Filter condition. $options array Command options. return array Command document.

mongodb\QueryBuilder listCollections()

listCollections() public method Generates 'listCollections' command. public array listCollections ( $condition = [], $options = [] )$condition array Filter condition. $options array Command options. return array Command document.

mongodb\QueryBuilder findAndModify()

findAndModify() public method Generates 'find and modify' command. public array findAndModify ( $collectionName, $condition = [], $update = [], $options = [] )$collectionName string Collection name $condition array Filter condition $update array Update criteria $options array List of options in format: optionName => optionValue. return array Command document.

mongodb\QueryBuilder group()

group() public method public void group ( $collectionName, $keys, $initial, $reduce, $options = [] )$collectionName $keys $initial $reduce $options