public function execute(array &$param_pool = null) { $result = new XMLElement($this->dsParamROOTELEMENT); try { $result = parent::execute($param_pool); } catch (FrontendPageNotFoundException $e) { // Work around. This ensures the 404 page is displayed and // is not picked up by the default catch() statement below FrontendPageNotFoundExceptionHandler::render($e); } catch (Exception $e) { $result->appendChild(new XMLElement('error', $e->getMessage() . ' on ' . $e->getLine() . ' of file ' . $e->getFile())); return $result; } if ($this->_force_empty_result) { $result = $this->emptyXMLSet(); } return $result; }
<?php $navigationDS = new NavigationDatasource(array(), false); $classParams = get_object_vars($this); foreach ($classParams as $key => $value) { $navigationDS->{$key} = $value; } $result = $navigationDS->execute($param_pool); return $result;