application: Allow changing vendor using 'move to another parent' link

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-04-30 21:55:16 +02:00
committed by Alexander Nicolaysen Sørnes
parent fc9bcb4927
commit d817ffa77a

View File

@@ -1336,6 +1336,16 @@ class Application {
return $sMsg; return $sMsg;
} }
public function objectSetParent($iNewId, $sClass = '')
{
$this->iVendorId = $iNewId;
}
public function objectGetParent($sClass = '')
{
return new vendor($this->iVendorId);
}
public function objectGetChildren($bIncludeDeleted = false) public function objectGetChildren($bIncludeDeleted = false)
{ {
return $this->objectGetChildrenClassSpecific('', $IncludeDeleted); return $this->objectGetChildrenClassSpecific('', $IncludeDeleted);