Add a moveChildren method to the objectManager and implement objectMoveChildren for version

and version_queue. Use this to move versions.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-23 23:31:24 +00:00
committed by WineHQ
parent 886cdeafa3
commit cf81d542ee
5 changed files with 109 additions and 4 deletions

View File

@@ -52,6 +52,29 @@ class appData
return $hResult;
}
function update($bSilent = FALSE)
{
if(!$this->canEdit())
return FALSE;
$sQuery = "UPDATE appData SET versionId = '?', appId = '?', sDescription = '?'
WHERE id = '?'";
$hResult = query_parameters($this->iVersionId, $this->iAppId,
$this->sDescription, $this->iId);
if(!$hResult)
{
if(!$bResult)
addmsg("Failed to update add data", "red");
return FALSE;
}
if(!$bSilent)
addmsg("Updated app data successfully", "green");
return TRUE;
}
function listSubmittedBy($iUserId, $bQueued = true)
{
$hResult = query_parameters("SELECT * FROM appData WHERE