. */ /** * Class ReportHtmlLine */ class ReportHtmlLine extends ReportBaseLine { /** * HTML line renderer * * @param ReportHtml $renderer * * @return void */ function render($renderer) { if ($this->x1 == '.') { $this->x1 = $renderer->getX(); } if ($this->y1 == '.') { $this->y1 = $renderer->getY(); } if ($this->x2 == '.') { $this->x2 = $renderer->getRemainingWidth(); } if ($this->y2 == '.') { $this->y2 = $renderer->getY(); } // Vertical line if ($this->x1 == $this->x2) { echo "
\n"; } // Horizontal line if ($this->y1 == $this->y2) { echo " \n"; } // Keep max Y updated // One or the other will be higher... lasy mans way... $renderer->addMaxY($this->y1); $renderer->addMaxY($this->y2); } }