removed obsolete parameter
This commit is contained in:
parent
c49409020d
commit
6f1dac455c
|
@ -40,18 +40,18 @@ class lamPDF extends UFPDF {
|
||||||
/**
|
/**
|
||||||
* format settings for page layout
|
* format settings for page layout
|
||||||
*/
|
*/
|
||||||
var $page_definitions;
|
private $page_definitions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* current active font name
|
* current active font name
|
||||||
*/
|
*/
|
||||||
var $fontName;
|
private $fontName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* list of supported fonts
|
* list of supported fonts
|
||||||
* format: <font name> => array(<file for default font style>, <file for bold>, <italic>, <bold italic>)
|
* format: <font name> => array(<file for default font style>, <file for bold>, <italic>, <bold italic>)
|
||||||
*/
|
*/
|
||||||
var $fontList = array(
|
private $fontList = array(
|
||||||
'BitstreamVeraSans-Roman' => array('vera.php', 'verab.php', 'verabi.php', 'verai.php')
|
'BitstreamVeraSans-Roman' => array('vera.php', 'verab.php', 'verabi.php', 'verai.php')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class lamPDF extends UFPDF {
|
||||||
* @param string $account_type
|
* @param string $account_type
|
||||||
* @param array $page_definitions
|
* @param array $page_definitions
|
||||||
*/
|
*/
|
||||||
function __construct($account_type = "user",$page_definitions = array(),$fontName) {
|
function __construct($page_definitions = array(),$fontName) {
|
||||||
$this->fontName = $fontName;
|
$this->fontName = $fontName;
|
||||||
define('FPDF_FONTPATH', $_SESSION['lampath'] . "lib/" . 'font/');
|
define('FPDF_FONTPATH', $_SESSION['lampath'] . "lib/" . 'font/');
|
||||||
// Call constructor of superclass
|
// Call constructor of superclass
|
||||||
|
|
|
@ -79,7 +79,7 @@ function createModulePDF($accounts,$pdf_structure="default") {
|
||||||
$fontName = "BitstreamVeraSans-Roman"; // TODO: load font name from XML file
|
$fontName = "BitstreamVeraSans-Roman"; // TODO: load font name from XML file
|
||||||
|
|
||||||
// Create a new PDF file acording to the account type
|
// Create a new PDF file acording to the account type
|
||||||
$pdf = new LamPDF($account_type,$load['page_definitions'],$fontName);
|
$pdf = new LamPDF($load['page_definitions'],$fontName);
|
||||||
|
|
||||||
// Loop over each account and add a new page in the PDF file for it
|
// Loop over each account and add a new page in the PDF file for it
|
||||||
foreach($accounts as $account) {
|
foreach($accounts as $account) {
|
||||||
|
|
Loading…
Reference in New Issue