public function getRoles()
    {
        $roles = array();

        if ($this->acl) {
            foreach ($this->acl->getRoles() as $role) {
                //Do not translate, only make first one uppercase
                $roles[$role] = ucfirst($role);
            }
        }
        asort($roles);

        return $roles;
    }
public function getRoles()
    {
        $roles = array();

        if ($this->acl) {
            foreach ($this->acl->getRoles() as $role) {
                //Do not translate, only make first one uppercase
                $roles[$role] = ucfirst($role);
            }
        }
        asort($roles);

        return $roles;
    }
public function getRoles ( ) { $ roles = array ( ) ; if ( $ this -> acl ) { foreach ( $ this -> acl -> getRoles ( ) as $ role ) { //Do not translate, only make first one uppercase $ roles [ $ role ] = ucfirst ( $ role ) ; } } asort ( $ roles ) ; return $ roles ; }
Returns the roles in the acl

@return array roleId => ucfirst(roleId)
Returns the roles in the acl