/** * @return string */ public function __toString() { if (count($this->cells) > 1) { $this->setContent(LF . join(LF, $this->cells) . LF); } else { $this->setContent(join('', $this->cells)); } return parent::__toString(); }
/** * @return string */ public function __toString() { $content = ''; if (isset($this->head)) { $content .= LF . $this->head; } if (isset($this->body)) { $content .= LF . $this->body; } $this->setContent($content . LF); return LF . parent::__toString() . LF; }
/** * @return string */ public function __toString() { $content = $this->getContent(); if (!strlen($content)) { $this->setContent(SP); $string = parent::__toString(); $this->setContent($content); } elseif ($content == ($value = $this->getAttribute('value'))) { $this->removeAttribute('value'); $string = parent::__toString(); $this->setAttribute('value', $value); } else { $string = parent::__toString(); } return $string; }
/** * @return string */ public function __toString() { $this->setContent(LF . join(LF, $this->rows) . LF); return parent::__toString(); }