fetchHead($this->_doc);
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
/**
* Generates the head html and return the results as a string
*
* @access public
* @return string
*/
function fetchHead(&$document)
{
// get line endings
$lnEnd = $document->_getLineEnd();
$tab = $document->_getTab();
$tagEnd = ' />';
$strHtml = '';
// Generate base tag (need to happen first)
$base = $document->getBase();
if(!empty($base)) {
$strHtml .= $tab.''.$lnEnd;
}
// Generate META tags (needs to happen as early as possible in the head)
foreach ($document->_metaTags as $type => $tag)
{
foreach ($tag as $name => $content)
{
if ($type == 'http-equiv') {
$strHtml .= $tab.''.$lnEnd;
$strHtml .= $tab.''.$lnEnd;
$strHtml .= $tab.'