public function getRoles(bool $force = false) : CNabuRoleList
    {
        if ($this->nb_role_list->isEmpty() || $force) {
            $this->nb_role_list->fillFromSite($this);
        }

        return $this->nb_role_list;
    }
public function getRoles(bool $force = false) : CNabuRoleList
    {
        if ($this->nb_role_list->isEmpty() || $force) {
            $this->nb_role_list->fillFromSite($this);
        }

        return $this->nb_role_list;
    }
public function getRoles ( bool $ force = false ) : CNabuRoleList { if ( $ this -> nb_role_list -> isEmpty ( ) || $ force ) { $ this -> nb_role_list -> fillFromSite ( $ this ) ; } return $ this -> nb_role_list ; }
Gets a list of all Roles availables in this Site.
@param bool $force If true, the list is reloaded from the database storage.
@return CNabuRoleList Returns the list of roles if any, or an empty list if none.
Gets a list of all Roles availables in this Site .