Example #1
0
 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();
 }
Example #2
0
 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();
 }
Example #3
0
 public static function __toString()
 {
     return sprintf('%s%s', self::$docType->__toString(), self::$documentElement->__toString());
 }
Example #4
0
 public function __toString()
 {
     return parent::__toString();
 }