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

Commit

Permalink
New optional parameters to the database connection
Browse files Browse the repository at this point in the history
Added optional parameters ´db_sid´ and ´jdbc_dir´.
  • Loading branch information
cossou committed Oct 15, 2015
1 parent 59bc93c commit 5f13278
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/JasperPHP/JasperPHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ public function process($input_file, $output_file = false, $format = array("pdf"

if( isset($db_connection['jdbc_url']) && !empty($db_connection['jdbc_url']) )
$command .= " --db-url " . $db_connection['jdbc_url'];

if ( isset($db_connection['jdbc_dir']) && !empty($db_connection['jdbc_dir']) )
$command .= ' --jdbc-dir ' . $db_connection['jdbc_dir'];

if ( isset($db_connection['db_sid']) && !empty($db_connection['db_sid']) )
$command .= ' --db-sid ' . $db_connection['db_sid'];

}

$this->redirect_output = $redirect_output;
Expand Down

0 comments on commit 5f13278

Please sign in to comment.