yii\rbac\ManagerInterface::getChildren PHP 메소드

getChildren() 공개 메소드

Returns the child permissions and/or roles.
public getChildren ( string $name ) : Item[]
$name string the parent name
리턴 Item[] the child permissions and/or roles
    public function getChildren($name);

Usage Example

 public function testGetChildren()
 {
     $user = $this->auth->createRole('user');
     $this->auth->add($user);
     $this->assertCount(0, $this->auth->getChildren($user->name));
     $changeName = $this->auth->createPermission('changeName');
     $this->auth->add($changeName);
     $this->auth->addChild($user, $changeName);
     $this->assertCount(1, $this->auth->getChildren($user->name));
 }
All Usage Examples Of yii\rbac\ManagerInterface::getChildren