Permalink
Browse files

Request #3204 Adding Raw entries to the Header

  • Loading branch information...
1 parent f659aa9 commit 997866979014058e241e59a8812925f72a933370 @CloCkWeRX CloCkWeRX committed Dec 10, 2011
Showing with 26 additions and 0 deletions.
  1. +26 −0 Page2.php
View
@@ -376,6 +376,15 @@ class HTML_Page2 extends HTML_Common {
var $frameset;
/**
+ * Array of raw header data
+ *
+ * @var array
+ * @access private
+ * @since 2.0
+ */
+ var $_rawHeaderData = array();
+
+ /**
* Class constructor.
*
* <p>Accepts an array of attributes</p>
@@ -749,6 +758,10 @@ function _generateHead()
}
} // end generating script blocks
+ foreach ($this->_rawHeaderData as $content) {
+ $strHtml .= $content . $lnEnd;
+ }
+
// Close tag
$strHtml .= $tabs . '</head>' . $lnEnd;
@@ -1697,5 +1710,18 @@ function display()
} // end func display
+ /**
+ * Adds raw data to the head of the document
+ *
+ * <p>Use this function to add raw data strings to the header.</p>
+ *
+ * @access public
+ * @param string $content Raw data to be added.
+ * @return void
+ */
+ function addRawHeaderData($content)
+ {
+ $this->_rawHeaderData[] = $content;
+ }
}
?>

0 comments on commit 9978669

Please sign in to comment.