Scalr\Model\Entity\Account\User::getAclRoles PHP Method

getAclRoles() public method

Gets account level roles
public getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition
$ignoreCache boolean Whether it shoud ignore cache
return Scalr\Acl\Role\AccountRoleSuperposition Returns the list of the roles of account level
    public function getAclRoles($ignoreCache = false)
    {
        if (!isset($this->_cache['roles.account'])) {
            $this->_cache['roles.account'] = \Scalr::getContainer()->acl->getUserRoles($this->id);
        }
        return $this->_cache['roles.account'];
    }