public function report_description_content() { try { $dept = new VendorDepartmentsModel($this->connection); $dept->vendorID($this->form->id); $dept->deptID($this->form->category); if ($dept->load()) { return array('Category: ' . $dept->name(), 'Margin Target: ' . sprintf('%.2f%%', $dept->margin() * 100)); } else { return array(); } } catch (Exception $ex) { return array(); } }