src/snac/server/database/DBUtil.php
/**
     * Return version list
     *
     * List all version numbers for the given $mainID. This is a utility function which may eventually become
     * private if some broader public function takes over its purpose.
     *
     * @param integer $mainID Constellation ID
     * @param integer $version optional The version number or if null or omitted,
     *                         go up to the most recent version.
     *
     * @return integer[] List of version integers ordered by version number.
     *
     */
Return version list
List all version numbers for the given $mainID. This is a utility function which may eventually become
private if some broader public function takes over its purpose.

@param integer $mainID Constellation ID
@param integer $version optional The version number or if null or omitted,
go up to the most recent version.

@return integer[] List of version integers ordered by version number.
Return version list List all version numbers for the given $mainID . This is a utility function which may eventually become private if some broader public function takes over its purpose . @param integer $mainID Constellation ID @param integer $version optional The version number or if null or omitted go up to the most recent version . @return integer [] List of version integers ordered by version number .
public function listAllVersions($mainID, $version=null)
    {
        $fromVersion = $version;
        if (!$version || !is_int($version)) {
            $fromVersion = $this->sql->selectCurrentVersion($mainID);
        }
        $vhInfo = array ("ic_id" => $mainID, "version" => $fromVersion);
        $history = $this->sql->selectVersionHistory($vhInfo, true);
        $versions = array();
        foreach ($history as $h) {
            array_push($versions, $h["version"]);
        }
        return $versions;
    }
public function listAllVersions ( $ mainID , $ version = null ) { $ fromVersion = $ version ; if ( ! $ version || ! is_int ( $ version ) ) { $ fromVersion = $ this -> sql -> selectCurrentVersion ( $ mainID ) ; } $ vhInfo = array ( " ic_id " => $ mainID , " version " => $ fromVersion ) ; $ history = $ this -> sql -> selectVersionHistory ( $ vhInfo , true ) ; $ versions = array ( ) ; foreach ( $ history as $ h ) { array_push ( $ versions , $ h [ " version " ] ) ; } return $ versions ; }
Return version list
 List all version numbers for the given $mainID.
Return version list List all version numbers for the given $mainID .