Hook: exporter_getTableData

Bevor die Exportdaten bei Verwendung einer Tabellen-Datenquelle gelesen werden

/*
 * -- Registration: --
 * $GLOBALS['MERCONIS_HOOKS']['exporter_getTableData'][] = array('myMerconisHookClass', 'myExporter_getTableData');
 *
 * -- Invocation: --
 * Before the export data is being read using a table data source.
 * If the hooked function returns something other than null, its return value will only be passed through
 * and the regular getTableData method will be skipped.
 *
 * -- Parameters: --
 *     1. $obj_exporter - a reference to the exporter object
 *
 * -- Return value: --
 * $arr_data or null
 *
 * -- Objective: --
 * creating a custom getTableData routine
 *
 */
 
public function myExporter_getTableData(&$obj_exporter) {

   /*
    * Create an array holding the export data
    */
    
   $arr_data = array(
      'key1' => 'value1',
      'key2' => 'value2',
      'key3' => 'value3',
   );
   
   return $arr_data;
}