public function __toString() { if ($this->_name) { $this->setAttribute('name', $this->_name); } if ($this->_httpEquiv) { $this->setAttribute('http-equiv', $this->_httpEquiv); } $this->setAttribute('content', $this->_content); return parent::__toString(); }
public function __toString() { $xhtml = ''; foreach ((array) $this->_import as $fileName) { $xhtml .= sprintf('@import url("%s");', $fileName); } foreach ((array) $this->_style as $styleName => $styles) { $xhtml .= sprintf('%s { %s }', $styleName, implode(', ', $styles)); } $this->_innerHTML = $xhtml; return parent::__toString(); }
public static function __toString() { return sprintf('%s%s', self::$docType->__toString(), self::$documentElement->__toString()); }
public function __toString() { return parent::__toString(); }