Hi support
I'm experimenting with writing a pass-through extension. I modified the example passthrough.php as follows:
1.
function
Ext_Passthrough(
$id
,
$options
,
$dataIn
,
$colInfo
)
2.
{
3.
echo
"PASSTRHOUGH"
;
4.
print_r([
'id'
=>
$id
,
'options'
=>
$options
,
'dataIn'
=>
$dataIn
,
'colInfo'
=>
$colInfo
]);
and the extensions.php as follows:
01.
'passthrough'
=>
array
(
02.
'enabled'
=> true,
03.
'autoload'
=> 1,
04.
'php'
=>
'passthrough.php'
,
05.
// Passthrough extension only handles the single_pass_call
06.
'single_pass_call'
=>
'Ext_Passthrough'
,
07.
'javascript'
=>
array
(),
08.
'css'
=>
array
(),
09.
'mydbrextension'
=> 1,
10.
'cmds'
=>
array
(
11.
array
(
12.
'cmd'
=>
'dbr.passthrough'
13.
),
14.
array
(
15.
'cmd'
=>
'dbr.passthrough.bla'
,
16.
'bla'
=> 1
17.
),
18.
),
19.
'passthrough'
=> true
20.
),
When I run a report as follows:
1.
select
'dbr.passthrough'
;
2.
select
'dbr.passthrough.bla'
,
'bla'
;
3.
select
1;
The Ext_Passthrough function is called twice? What am I doing wrong?
Thanks
Mark