public function __toString() { if (null === $this->htmlBuffer) { return parent::__toString(); } $return = $this->htmlBuffer; $this->htmlBuffer = ''; return $return; }