public function getSites($force = false)
    {
        if ($force) {
            $this->nb_site_list->clear();
            $this->nb_site_list->merge(CNabuSite::getAllSites($this));
        }

        return $this->nb_site_list->getItems();
    }
public function getSites($force = false)
    {
        if ($force) {
            $this->nb_site_list->clear();
            $this->nb_site_list->merge(CNabuSite::getAllSites($this));
        }

        return $this->nb_site_list->getItems();
    }
public function getSites ( $ force = false ) { if ( $ force ) { $ this -> nb_site_list -> clear ( ) ; $ this -> nb_site_list -> merge ( CNabuSite :: getAllSites ( $ this ) ) ; } return $ this -> nb_site_list -> getItems ( ) ; }
Gets available Site instances in the list.
@param bool $force If true, forces to merge complete list from the storage.
@return array Returns an associative array where the index is the ID of each Site and the value is the instance.
Gets available Site instances in the list .