public function getProjects($force = false)
    {
        if ($this->nb_project_list === null) {
            $this->nb_project_list = new CNabuProjectList($this);
        }

        if ($force) {
            $this->nb_role_list->clear();
            $this->nb_project_list->merge(CNabuProject::getAllProjects($this));
        }

        return $this->nb_project_list->getItems();
    }
public function getProjects($force = false)
    {
        if ($this->nb_project_list === null) {
            $this->nb_project_list = new CNabuProjectList($this);
        }

        if ($force) {
            $this->nb_role_list->clear();
            $this->nb_project_list->merge(CNabuProject::getAllProjects($this));
        }

        return $this->nb_project_list->getItems();
    }
public function getProjects ( $ force = false ) { if ( $ this -> nb_project_list === null ) { $ this -> nb_project_list = new CNabuProjectList ( $ this ) ; } if ( $ force ) { $ this -> nb_role_list -> clear ( ) ; $ this -> nb_project_list -> merge ( CNabuProject :: getAllProjects ( $ this ) ) ; } return $ this -> nb_project_list -> getItems ( ) ; }
Gets available Project instances in the list.
@param bool $force If true, foces 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 Project instances in the list .