private function checkoverflow($arraydata, $txt = "") { $this->print_expression($arraydata); if ($this->print_expression_result == true) { if ($arraydata["link"]) { $arraydata["link"] = $this->analyse_expression($arraydata["link"], ""); } if ($arraydata["writeHTML"] == 1 && $this->pdflib == "TCPDF") { $this->pdf->writeHTML($txt); } elseif ($arraydata["poverflow"] == "true" && $arraydata["soverflow"] == "false") { $this->pdf->Cell($arraydata["width"], $arraydata["height"], IReportHelper::formatText($txt, $arraydata["pattern"]), $arraydata["border"], "", $arraydata["align"], $arraydata["fill"], $arraydata["link"]); if ($this->debuggroup == true) { $this->pdf->MultiCell(100, 10, "SampleText"); } } elseif ($arraydata["poverflow"] == "false" && $arraydata["soverflow"] == "false") { while ($this->pdf->GetStringWidth($txt) > $arraydata["width"]) { $txt = substr_replace($txt, "", -1); } $this->pdf->Cell($arraydata["width"], $arraydata["height"], IReportHelper::formatText($txt, $arraydata["pattern"]), $arraydata["border"], "", $arraydata["align"], $arraydata["fill"], $arraydata["link"]); if ($this->debuggroup == true) { $this->pdf->MultiCell(100, 10, "SampleText"); } } elseif ($arraydata["poverflow"] == "false" && $arraydata["soverflow"] == "true") { $this->pdf->MultiCell($arraydata["width"], $arraydata["height"], IReportHelper::formatText($txt, $arraydata["pattern"]), $arraydata["border"], $arraydata["align"], $arraydata["fill"]); if ($this->debuggroup == true) { $this->pdf->MultiCell(100, 10, "SampleText"); } } else { $this->pdf->MultiCell($arraydata["width"], $arraydata["height"], IReportHelper::formatText($txt, $arraydata["pattern"]), $arraydata["border"], $arraydata["align"], $arraydata["fill"]); if ($this->debuggroup == true) { $this->pdf->MultiCell(100, 10, "SampleText"); } } } $this->print_expression_result = false; if ($this->debuggroup == true) { $this->pdf->MultiCell(100, 10, "SampleText"); } }