From d817ffa77a3bb5b74e15611b1e409b06778c7b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 30 Apr 2009 21:55:16 +0200 Subject: [PATCH] application: Allow changing vendor using 'move to another parent' link --- include/application.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/application.php b/include/application.php index b4c8a61..1622c97 100644 --- a/include/application.php +++ b/include/application.php @@ -1336,6 +1336,16 @@ class Application { return $sMsg; } + public function objectSetParent($iNewId, $sClass = '') + { + $this->iVendorId = $iNewId; + } + + public function objectGetParent($sClass = '') + { + return new vendor($this->iVendorId); + } + public function objectGetChildren($bIncludeDeleted = false) { return $this->objectGetChildrenClassSpecific('', $IncludeDeleted);