public function execute(array &$param_pool = null)
    {
        $result = new XMLElement($this->dsParamROOTELEMENT);

        try {
            $result = $this->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', General::wrapInCDATA($e->getMessage())));
            return $result;
        }

        if ($this->_force_empty_result) {
            $result = $this->emptyXMLSet();
        }

        if ($this->_negate_result) {
            $result = $this->negateXMLSet();
        }

        return $result;
    }
public function execute(array &$param_pool = null)
    {
        $result = new XMLElement($this->dsParamROOTELEMENT);

        try {
            $result = $this->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', General::wrapInCDATA($e->getMessage())));
            return $result;
        }

        if ($this->_force_empty_result) {
            $result = $this->emptyXMLSet();
        }

        if ($this->_negate_result) {
            $result = $this->negateXMLSet();
        }

        return $result;
    }
public function execute ( array & $ param_pool = null ) { $ result = new XMLElement ( $ this -> dsParamROOTELEMENT ) ; try { $ result = $ this -> 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' , General :: wrapInCDATA ( $ e -> getMessage ( ) ) ) ) ; return $ result ; } if ( $ this -> _force_empty_result ) { $ result = $ this -> emptyXMLSet ( ) ; } if ( $ this -> _negate_result ) { $ result = $ this -> negateXMLSet ( ) ; } return $ result ; }
The meat of the Datasource, this function includes the datasource
type's file that will preform the logic to return the data for this datasource
It is passed the current parameters.

@param array $param_pool
The current parameter pool that this Datasource can use when filtering
and finding Entries or data.
@return XMLElement
The XMLElement to add into the XML for a page.
The meat of the Datasource this function includes the datasource type s file that will preform the logic to return the data for this datasource It is passed the current parameters .