Prado\Security\TUserManager::getRoles PHP Метод

getRoles() публичный Метод

Each array element represents the roles for a single user. The array key is the username in lower case, and the array value is the roles (represented as an array) that the user is in.
public getRoles ( ) : array
Результат array list of user role information
    public function getRoles()
    {
        return $this->_roles;
    }

Usage Example

Пример #1
0
 public function testRoles()
 {
     $userManager = new TUserManager();
     $userManager->init(self::$config);
     self::assertEquals(array('joe' => array('Writer'), 'john' => array('Administrator', 'Writer'), 'test' => array('Reader', 'User')), $userManager->getRoles());
 }