Allow moving a version to another app

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-04-22 21:36:26 +02:00
committed by Alexander Nicolaysen Sørnes
parent 8501de46ac
commit c7da357a4c
4 changed files with 116 additions and 1 deletions

View File

@@ -957,11 +957,19 @@ class Application {
return 'appId';
}
public static function objectGetEntries($sState, $iRows = 0, $iStart = 0, $sOrderBy = "appId", $bAscending = TRUE, $oFilters = null)
public static function objectGetEntries($sState, $iRows = 0, $iStart = 0, $sOrderBy = 'default', $bAscending = TRUE, $oFilters = null)
{
$sLimit = "";
$sOrdering = $bAscending ? "ASC" : "DESC";
if($sOrderBy == 'default')
{
if($sState == 'queued')
$sOrderBy = 'appId';
else
$sOrderBy = 'appName';
}
$sExtraTables = '';
$sWhereFilter = $oFilters ? $oFilters->getWhereClause() : '';
$aOptions = $oFilters ? $oFilters->getOptions() : array('onlyDownloadable' => 'false', 'appCategory' => null);