mongodb\rbac\MongoDbManager $cache

$cache public property The cache used to improve RBAC performance. This can be one of the following: an application component ID (e.g. cache) a configuration array a yii\caching\Cache object When this is not set, it means caching is not enabled. Note that by enabling RBAC cache, all auth items, rules and auth item parent-child relationships will be cached and loaded into memory. This will improve the performance of RBAC permission check. However, it does require extra memory and as a result

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 __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 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 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 group()

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

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.