public function getVersions($force = false)
    {
        if ($this->nb_project_version_list === null) {
            $this->nb_project_version_list = new CNabuProjectVersionList();
        }

        if ($this->nb_project_version_list->isEmpty() || $force) {
            $this->nb_project_version_list->clear();
            $this->nb_project_version_list->merge(CNabuProjectVersion::getAllProjectVersions($this));
        }

        return $this->nb_project_version_list;
    }
public function getVersions($force = false)
    {
        if ($this->nb_project_version_list === null) {
            $this->nb_project_version_list = new CNabuProjectVersionList();
        }

        if ($this->nb_project_version_list->isEmpty() || $force) {
            $this->nb_project_version_list->clear();
            $this->nb_project_version_list->merge(CNabuProjectVersion::getAllProjectVersions($this));
        }

        return $this->nb_project_version_list;
    }
public function getVersions ( $ force = false ) { if ( $ this -> nb_project_version_list === null ) { $ this -> nb_project_version_list = new CNabuProjectVersionList ( ) ; } if ( $ this -> nb_project_version_list -> isEmpty ( ) || $ force ) { $ this -> nb_project_version_list -> clear ( ) ; $ this -> nb_project_version_list -> merge ( CNabuProjectVersion :: getAllProjectVersions ( $ this ) ) ; } return $ this -> nb_project_version_list ; }
Gets Versions assigned to the project.
@param bool $force If true, the Project Version list is refreshed from the database.
@return CNabuProjectVersionList Returns the list of Versions. If none Version exists, the list is empty.
Gets Versions assigned to the project .