initClientOptions() protected method Initializes client options protected void initClientOptions ( )
setWriteConcern() public method Sets write concern for this command. public $this setWriteConcern ( $writeConcern )$writeConcern \MongoDB\Driver\WriteConcern|integer|string|null Write concern, it can be an instance of \MongoDB\Driver\WriteConcern or its scalar mode value, for example: majority. return $this Self reference
dropCollection() public method (available since version 2.1) Drops specified collection. public boolean dropCollection ( $name )$name string Name of the collection return boolean Whether operation was successful.
defaultTitle() protected method Generates service title. protected string defaultTitle ( )return string Service title.
defaultName() protected method Generates service name. protected string defaultName ( )return string Service name.
run() public method 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
__construct() public method Constructor. public void __construct ( $collection, $cursor )$collection yii\mongodb\file\Collection $cursor \MongoDB\Driver\Cursor
getUserIdsByRole() public method (available since version 2.0.7) Returns all role assignment information for the specified role. public yii\rbac\Assignment[] getUserIdsByRole ( $roleName )$roleName string return yii\rbac\Assignment[] The assignments. An empty array will be returned if role is not assigned to any user.
removeAll() public abstract method Removes all authorization data, including roles, permissions, rules, and assignments. public abstract void removeAll ( )
getChildRoles() public method Returns the roles that are adding to the role via addChild() by recursive. public yii\rbac\Role[] getChildRoles ( $roleName )$roleName string Name of parent Role. return yii\rbac\Role[] All roles directly adding to the role. The array is indexed by the role names. First element is a Role item that are getting by $roleName. throws yii\base\InvalidParamException if Role was not found that are getting by $roleName
Page 564 of 633