Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

Commit 5f13278

Browse files
committed
New optional parameters to the database connection
Added optional parameters ´db_sid´ and ´jdbc_dir´.
1 parent 59bc93c commit 5f13278

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/JasperPHP/JasperPHP.php

+7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ public function process($input_file, $output_file = false, $format = array("pdf"
121121

122122
if( isset($db_connection['jdbc_url']) && !empty($db_connection['jdbc_url']) )
123123
$command .= " --db-url " . $db_connection['jdbc_url'];
124+
125+
if ( isset($db_connection['jdbc_dir']) && !empty($db_connection['jdbc_dir']) )
126+
$command .= ' --jdbc-dir ' . $db_connection['jdbc_dir'];
127+
128+
if ( isset($db_connection['db_sid']) && !empty($db_connection['db_sid']) )
129+
$command .= ' --db-sid ' . $db_connection['db_sid'];
130+
124131
}
125132

126133
$this->redirect_output = $redirect_output;

0 commit comments

Comments
 (0)