public function getCatalogs($force = false)
    {
        if ($this->nb_catalog_list->isEmpty() || $force) {
            $this->nb_catalog_list->clear();
            $this->nb_catalog_list->merge(CNabuCatalog::getAllCatalogs($this));
        }

        return $this->nb_catalog_list->getItems();
    }
public function getCatalogs($force = false)
    {
        if ($this->nb_catalog_list->isEmpty() || $force) {
            $this->nb_catalog_list->clear();
            $this->nb_catalog_list->merge(CNabuCatalog::getAllCatalogs($this));
        }

        return $this->nb_catalog_list->getItems();
    }
public function getCatalogs ( $ force = false ) { if ( $ this -> nb_catalog_list -> isEmpty ( ) || $ force ) { $ this -> nb_catalog_list -> clear ( ) ; $ this -> nb_catalog_list -> merge ( CNabuCatalog :: getAllCatalogs ( $ this ) ) ; } return $ this -> nb_catalog_list -> getItems ( ) ; }
Gets available Catalog instances in the list.
@param bool $force If true, fordes to merge complete list from the storage.
@return array Returns an associative array where the index is the ID of each Catalog and the value
is the instance.
Gets available Catalog instances in the list .