public function getSiteRoles(bool $force = false) : CNabuSiteRoleList
    {
        if ($this->nb_site_role_list->isEmpty() || $force) {
            $this->nb_site_role_list->clear();
            $this->nb_site_role_list->merge(CNabuSiteRole::getSiteRolesForSite($this));
        }

        return $this->nb_site_role_list;
    }
public function getSiteRoles(bool $force = false) : CNabuSiteRoleList
    {
        if ($this->nb_site_role_list->isEmpty() || $force) {
            $this->nb_site_role_list->clear();
            $this->nb_site_role_list->merge(CNabuSiteRole::getSiteRolesForSite($this));
        }

        return $this->nb_site_role_list;
    }
public function getSiteRoles ( bool $ force = false ) : CNabuSiteRoleList { if ( $ this -> nb_site_role_list -> isEmpty ( ) || $ force ) { $ this -> nb_site_role_list -> clear ( ) ; $ this -> nb_site_role_list -> merge ( CNabuSiteRole :: getSiteRolesForSite ( $ this ) ) ; } return $ this -> nb_site_role_list ; }
Gets a list of all Site Roles availables in this Site.
@param bool $force If true, the list is reloaded from the database storage.
@return CNabuSiteRoleList Returns the list of Site Roles if any, or an empty list if none.
Gets a list of all Site Roles availables in this Site .