Implement vendor::objectMoveChildren()

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-05-12 16:34:28 +00:00
committed by WineHQ
parent 6b7b9add74
commit f7ae814cbb

View File

@@ -317,6 +317,29 @@ class Vendor {
{
return FALSE;
}
function objectMoveChildren($iNewId)
{
/* Keep track of how many children we have modified */
$iCount = 0;
foreach($this->aApplicationsIds as $iAppId)
{
$oApp = new application($iAppId);
$oApp->iVendorId = $iNewId;
if($oApp->update(TRUE))
$iCount++;
else
return FALSE;
}
return $iCount;
}
function objectGetId()
{
return $this->iVendorId;
}
}
?>