Hook: exporter_getProductData
Bevor die Exportdaten bei Verwendung einer Produkt-Datenquelle gelesen werden
/*
* -- Registration: --
* $GLOBALS['MERCONIS_HOOKS']['exporter_getProductData'][] = array('myMerconisHookClass', 'myExporter_getProductData');
*
* -- Invocation: --
* Before the export data is being read using a product data source.
* If the hooked function returns something other than null, its return value will only be passed through
* and the regular getProductData method will be skipped.
*
* -- Parameters: --
* 1. $obj_exporter - a reference to the exporter object
*
* -- Return value: --
* $arr_data or null
*
* -- Objective: --
* creating a custom getProductData routine
*
*/
public function myExporter_getProductData(&$obj_exporter) {
/*
* Create an array holding the export data
*/
$arr_data = array(
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
);
return $arr_data;
}