- add version and vendor classes

- much improved application class (same model as the other new classes I made)
- modified category class
- modified some files to use the new classes and methods
- deletes linked elements on cascade
This commit is contained in:
Jonathan Ernst
2005-02-06 17:49:48 +00:00
committed by WineHQ
parent b171c02c94
commit 792151c574
6 changed files with 733 additions and 171 deletions

View File

@@ -32,22 +32,26 @@ if($_REQUEST['what'])
switch($_REQUEST['what'])
{
case "comment":
// TODO: delete a comment
$oComment = new Comment($_REQUEST['commentId']);
$oComment->delete();
redirect(BASE."appview.php?appId=".$_REQUEST['appId']."&versionId=".$_REQUEST['versionId']);
break;
case "category":
// delete category and the apps in it
deleteCategory($_REQUEST['catId']);
$oCategory = new Category($_REQUEST['catId']);
$oCategory->delete();
redirect(BASE."appbrowse.php");
break;
case "appFamily":
// delete app family & all its versions
deleteAppFamily($_REQUEST['appId']);
$oApp = new Application($_REQUEST['appId']);
$oApp->delete();
redirect(BASE."appbrowse.php");
break;
case "appVersion":
// delete a version
deleteAppVersion($_REQUEST['versionId']);
$oVersion = new Application($_REQUEST['versionId']);
$oVersion->delete();
redirect(BASE."appview.php?appId=".$_REQUEST['appId']);
break;
}