Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // realurl_conf.php
- // .. snip begin
- 'postVarSets' => array(
- '_DEFAULT' => array(
- 'ean' =>
- array(
- 'GETvar' => 'tx_niblucherproductimport_pi1[product]',
- 'userFunc' => 'EXT:ni_blucher_productimport/class.user_blucher_realurl.php:&user_blucher_realurl->eanMain'
- ),
- ),
- ),
- // ... snip end
- // declared in file, class.user_blucher_realurl.php
- class user_blucher_realurl {
- function eanMain($params, $pObj) {
- die('Start eanMain()');
- return ($params['decodeAlias'] ? $this->ean2productId($params['value']) : $this->productId2ean($params['value']));
- }
- function ean2productId($value) {
- die('ean2productId()')
- }
- function productId2ean($value) {
- die('productId2ean()');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment