// Code Review Invoices V&V

This commit is contained in:
vChabot
2012-02-03 15:55:53 +00:00
parent 1d6a012c57
commit 35c01bb36d
9 changed files with 189 additions and 202 deletions
+7 -8
View File
@@ -94,7 +94,7 @@ class PDFGeneratorCore extends TCPDF
*/
public function setFontForLang($iso_lang)
{
$this->font = self::DEFAULT_FONT;
$this->font = PDFGenerator::DEFAULT_FONT;
if (array_key_exists($iso_lang, $this->font_by_lang))
$this->font = $this->font_by_lang[$iso_lang];
@@ -106,7 +106,7 @@ class PDFGeneratorCore extends TCPDF
*/
public function Header()
{
$this->writehtml($this->header);
$this->writeHTML($this->header);
}
/**
@@ -114,7 +114,7 @@ class PDFGeneratorCore extends TCPDF
*/
public function Footer()
{
$this->writehtml($this->footer);
$this->writeHTML($this->footer);
}
/**
@@ -131,8 +131,8 @@ class PDFGeneratorCore extends TCPDF
$this->lastPage();
$output = $display ? 'I' : 'S';
return $this->output($filename, $output);
$output = $display ? 'I' : 'S';
return $this->output($filename, $output);
}
/**
@@ -147,7 +147,6 @@ class PDFGeneratorCore extends TCPDF
$this->AddPage();
$this->writehtml($this->content, true, false, true, false, '');
$this->writeHTML($this->content, true, false, true, false, '');
}
}
}