subsiteID = $id; } function getSubsiteID() { return $this->subsiteID; } function gettree(SS_HTTPRequest $request) { $oldSubsiteID = Session::get('SubsiteID'); Session::set('SubsiteID', $this->subsiteID); $results = parent::tree($request); Session::set('SubsiteID', $oldSubsiteID); return $results; } public function getsubtree(SS_HTTPRequest $request) { $oldSubsiteID = Session::get('SubsiteID'); Session::set('SubsiteID', $this->subsiteID); $obj = $this->objectForKey($_REQUEST['SubtreeRootID']); if(!$obj) user_error("Can't find database record $this->sourceObject with $this->keyField = $_REQUEST[SubtreeRootID]", E_USER_ERROR); if($this->filterFunc) $obj->setMarkingFilterFunction($this->filterFunc); else if($this->sourceObject == 'Folder') $obj->setMarkingFilter('ClassName', 'Folder'); $obj->markPartialTree(); $eval = '"