ChangeSet ID: 31127 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/05/12 11:34:28
Modified files: include : vendor.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com Implement vendor::objectMoveChildren()
Patch: http://cvs.winehq.org/patch.py?id=31127
Old revision New revision Changes Path 1.26 1.27 +23 -0 appdb/include/vendor.php
Index: appdb/include/vendor.php diff -u -p appdb/include/vendor.php:1.26 appdb/include/vendor.php:1.27 --- appdb/include/vendor.php:1.26 12 May 2007 16:34:28 -0000 +++ appdb/include/vendor.php 12 May 2007 16:34:28 -0000 @@ -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; + } }
?>