From 390251ac43ca889a318369342b4663ef928349d8 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 21:06:48 +0200 Subject: Contact: use Model --- classes/Correspondence.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'classes/Correspondence.php') diff --git a/classes/Correspondence.php b/classes/Correspondence.php index 4c7a23b..09873c3 100644 --- a/classes/Correspondence.php +++ b/classes/Correspondence.php @@ -183,7 +183,7 @@ class Correspondence extends FPDF { function SetContact($contact) { $this->contact = $contact; - $this->language = $contact->getLanguage(); + $this->language = $contact->language; } /** @@ -262,16 +262,16 @@ class Correspondence extends FPDF { $this->SetFont('','',11); $this->SetXY(30,56.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getName())); + $this->Cell(90,5.5,utf8_decode($this->contact->name)); $this->Ln(); $this->SetXY(30,61.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getAddress())); + $this->Cell(90,5.5,utf8_decode($this->contact->address)); $this->Ln(); $this->SetXY(30,66.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getPostalCode().' '.$this->contact->getCity())); + $this->Cell(90,5.5,utf8_decode($this->contact->postal_code.' '.$this->contact->city)); $this->Ln(); $this->SetXY(30,71.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getCountry())); + $this->Cell(90,5.5,utf8_decode($this->contact->country)); $this->Ln(); } -- cgit v1.2.3