Table of contents:
You can create your own custom fetch functions from within your own custom module.
File: extension/ourcustom/modules/ourcustom/function_definition.php
<?php $FunctionList = array(); $FunctionList['CustomFetch'] = array( 'name' => 'customfetch', 'operation_types' => array( 'read' ), 'call_method' => array( 'include_file' => 'extension/ourcustom/modules/ourcustom/ourcustomfunctioncollection.php', 'class' => 'OurCustomFunctionCollection', 'method' => 'fetchCustomFetch' ), 'parameter_type' => 'standard', 'parameters' => array( array( 'name' => 'some', 'type' => 'integer', 'required' => true, 'default' => -1 ), array( 'name' => 'params', 'type' => 'string', 'required' => true, 'default' => '' ) ); ?>
File: extension/ourcustom/modules/ourcustom/ourcustomfunctioncollection.php
<?php class OurCustomFunctionCollection { function OurCustomFunctionCollection() { } function &fetchCustomFetch( $some, $params ) { $result =& retrieve data here return array( 'result' => $result ); } } ?>
{def $collection=fetch( stuff, customfetch, hash( the, params ) )}