function printSearchData($searchData) { $this->SetFont('Helvetica', 'B', 11); $this->Cell(0, 5, "Suchkriterien"); $this->Ln(7); $this->SetFont('Helvetica', '', 10); if (array_key_exists('keywords', $searchData) && !empty($searchData["keywords"])) { $this->Cell(0, 5, utf8_decode("Stichwörter: " . $searchData["keywords"])); $this->Ln(5); } if (array_key_exists('district', $searchData)) { $this->Cell(0, 5, "Bezirk: " . utf8_decode(getSingleDistrict($searchData["district"])['district_name'])); $this->Ln(5); } $this->Ln(2); unset($searchData['district']); unset($searchData['keywords']); unset($searchData['image_category']); unset($searchData['image_tags']); foreach ($searchData as $sp) { $attribute = $sp[0]; $values = $sp[1]; if ($attribute > -1 and !empty($values)) { $this->Cell(0, 5, utf8_decode(Idp_Main::getAttributeName($attribute)[0] . ": ")); $this->Ln(5); $this->Cell(5); $count_values = count($values); $this->MultiAlignCell(0, 5, utf8_decode(implode(", ", $values))); $this->Ln(5); } } $this->Ln(5); $this->Hline(); }