Scalr\Model\Entity\Account\User::getAclRoles PHP 메소드

getAclRoles() 공개 메소드

Gets account level roles
public getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition
$ignoreCache boolean Whether it shoud ignore cache
리턴 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'];
    }