Build the HTML header. Includes doctype definition, <html> and <head>
sections, meta data and window title.

@return str
779133
public function _htmlHeader($title)
    {

        $output = $this->_doctype();
        $output .= '<html lang="en">'."\n";
        $output .= "<head>\n\n";

        $output .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'."\n\n";
        $output .= '<meta name="generator" content="PHPDoctor '.$this->_doclet->version().' (http://peej.github.com/phpdoctor/)">'."\n";
        $output .= '<meta name="when" content="'.gmdate('r').'">'."\n\n";

        $output .= '<link rel="stylesheet" type="text/css" href="'.str_repeat('../', $this->_depth).'stylesheet.css">'."\n";
        $output .= '<link rel="start" href="'.str_repeat('../', $this->_depth).'namespaces.html">'."\n\n";

        $output .= '<title>';
        if ($title) {
            $output .= $title.' ('.$this->_doclet->windowTitle().')';
        } else {
            $output .= $this->_doclet->windowTitle();
        }
        $output .= "</title>\n\n";
        $output .= "</head>\n";

        return $output;

    }
563420
public function build()
    {
        $html = '<a href="' . $this->url . '"';

        if ($this->ajax) {
            $html .= ' data-ajax';
        }

        $html .= '>' . $this->text;

        if ($this->current) {
            $html .= ' <span class="sr-only">(current)</span>';
        }

        $html .= '</a>';

        return $html;
    }
611075
public function getHeaderString()
    {
        $string = '';
        foreach ($this->headers as $name => $values) {
            foreach ($values as $value) {
                $string .= $name . ': ' . $value . "\r\n";
            }
        }
        return $string;
    }
1360685
protected HtmlTree getClassUseHeader() {
        String cltype = configuration.getText(classdoc.isInterface()?
            "doclet.Interface":"doclet.Class");
        String clname = classdoc.qualifiedName();
        String title = configuration.getText("doclet.Window_ClassUse_Header",
                cltype, clname);
        HtmlTree bodyTree = getBody(true, getWindowTitle(title));
        HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER))
                ? HtmlTree.HEADER()
                : bodyTree;
        addTop(htmlTree);
        addNavLinks(true, htmlTree);
        if (configuration.allowTag(HtmlTag.HEADER)) {
            bodyTree.addContent(htmlTree);
        }
        ContentBuilder headContent = new ContentBuilder();
        headContent.addContent(getResource("doclet.ClassUse_Title", cltype));
        headContent.addContent(new HtmlTree(HtmlTag.BR));
        headContent.addContent(clname);
        Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING,
                true, HtmlStyle.title, headContent);
        Content div = HtmlTree.DIV(HtmlStyle.header, heading);
        if (configuration.allowTag(HtmlTag.MAIN)) {
            mainTree.addContent(div);
        } else {
            bodyTree.addContent(div);
        }
        return bodyTree;
    }
1082449
public function build(): string
    {
        $html_attr = [];

        if (!$this->element) {
            $this->element = strtolower((new \ReflectionClass($this))->getShortName());
        }

        if (!empty($this->id)) {
            $html_attr['id'] = $this->id;
        }

        if (!empty($this->name)) {
            $html_attr['name'] = $this->name;
        }

        if ($this->css) {
            $this->css = array_unique($this->css);
            $html_attr['class'] = implode(' ', $this->css);
        }

        if ($this->style) {

            $styles = [];

            foreach ($this->style as $name => $val) {
                $styles[] = $name . ': ' . $val;
            }

            $html_attr['style'] = implode('; ', $styles);
        }

        if ($this->event) {
            foreach ($this->event as $event => $val) {
                $html_attr[$event] = $val;
            }
        }

        if ($this->data) {
            foreach ($this->data as $attr => $val) {
                $html_attr['data-' . $attr] = $val;
            }
        }

        if ($this->aria) {
            foreach ($this->aria as $attr => $val) {
                $html_attr['aria-' . $attr] = $val;
            }
        }

        if ($this->attribute) {
            foreach ($this->attribute as $attr => $val) {
                $html_attr[$attr] = $val;
            }
        }

        // we have all our attributes => build attribute string
        $tmp_attr = [];

        foreach ($html_attr as $name => $val) {
            $tmp_attr[] = $val === false ? $name : $name . (strpos($name, 'data') === false ? '="' . $val . '"' : '=\'' . $val . '\'');
        }

        $html_attr = implode(' ', $tmp_attr);

        // html attribute string has been created, lets build the element
        switch ($this->element) {

            case 'input':
            case 'meta':
            case 'img':
            case 'link':
                $html = '<' . $this->element . ($html_attr ? ' ' . $html_attr : '') . '>';
                break;

            default:
                $html = '<' . $this->element . ($html_attr ? ' ' . $html_attr : '') . '>' . $this->inner . '</' . $this->element . '>';
                break;
        }

        return $html;
    }
328336
public function generateHeaders()
    {
        $this->setHeader( "Content-Type", "text/" . $this->subType . "; charset=" . $this->charset );
        $this->setHeader( "Content-Transfer-Encoding", $this->encoding );
        return parent::generateHeaders();
    }
915104
public function build()
    {
        # Fixed Header
        # Control Packet Type
        $cmd = $this->getMessageType() << 4;

        $cmd |= ($this->reserved_flags & 0x0F);

        $header = chr($cmd) . $this->remaining_length_bytes;

        $header .= $this->buildVariableHeader();

        return $header;
    }
291431
public function toHeading()
    {
        $results = '';

        foreach ($this->getParser()->toArray() as $name => $types) {
            if (in_array($name, $this->ignores)) {
                continue;
            }

            $results .= "\t\t\t".'<th>'.ucwords($name).'</th>'.PHP_EOL;
        }

        return $results;
    }
1084183
protected function buildHeader()
    {
        $header                                     = new Buffer(self::RTP_HEADER_BYTE_LENGTH);
        $header[self::RTP_VERSION_PAD_EXTEND_INDEX] = pack('c', self::RTP_VERSION_PAD_EXTEND);
        $header[self::RTP_PAYLOAD_INDEX]            = pack('c', self::RTP_PAYLOAD_TYPE);
        $header->writeShort($this->seq, self::SEQ_INDEX);
        $header->writeInt($this->timestamp, self::TIMESTAMP_INDEX);
        $header->writeInt($this->ssrc, self::SSRC_INDEX);

        return $header;
    }
640246
protected function buildVariableHeader()
    {
        $buffer = "";
        $buffer .= chr($this->session_present);
        $buffer .= chr($this->return_code);
        return $buffer;
    }
653785
public function header()
    {
        $gotObjList             = OObject::validateSession();
        $now                    = new \DateTime();
        $scripts                = $gotObjList->resources;
        $gotObjList->lastAccess = $now->format("Y-m-d H:i:s");

        if ($scripts) {
            $view = new ViewModel();
            $view->setTemplate('zf3-graphic-object-templating/main/got-header.twig');
            $view->setVariable('scripts',
                ['css' => $scripts['css'] ?? [], 'js' => $scripts['js'] ?? [], 'font' => $scripts['fonts'] ?? []]);
            $renduHtml = $this->_twigRender->render($view);
            return $renduHtml;
        }
        return false;
    }
1341946
public function renderHead()
    {
        $headers = $this->getTable()->getHeaders();
        $render = '';
        foreach ($headers as $name => $title) {
            $render .= $this->getTable()->getHeader($name)->render();
        }
        $render = sprintf('<tr class="zf-title">%s</tr>', $render);
        return $render;
    }
1169232
public function toHtml()
    {
        $this->setMeta("class", "vf__notes");

        $this->setConditionalMeta();
        $strOutput = "<div{$this->__getMetaString()}>\n";

        if (! empty($this->__header)) {
            $strOutput .= "<h4{$this->__getLabelMetaString()}>$this->__header</h4>\n";
        }

        if (! empty($this->__body)) {
            if (preg_match("/<p.*?>/", $this->__body) > 0) {
                $strOutput .= "{$this->__body}\n";
            } else {
                $strOutput .= "<p>{$this->__body}</p>\n";
            }
        }
        $strOutput .= "</div>\n";

        return $strOutput;
    }
1315084
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        foreach ($this->children as $child_widget) {
            $set->addEntrySet($child_widget->getHtmlHeadEntrySet());
        }

        return $set;
    }
1139553
public function displayHeader()
    {
        if ($this->title == '') {
            $title = '&nbsp;';
            $this->title_content_type = 'text/xml';
        } else {
            $title = $this->title;
        }

        if ($this->abbreviated_title === null) {
            if ($this->title_content_type === 'text/plain') {
                echo SwatString::minimizeEntities($title);
            } else {
                echo $title;
            }
        } else {
            $abbr_tag = new SwatHtmlTag('abbr');
            // Note: This always minimizes entities in titles regardless of
            // $this->title_content_type, as its a html tag attribute.
            $abbr_tag->title = SwatString::minimizeEntities($title);
            $abbr_tag->setContent(
                $this->abbreviated_title,
                $this->abbreviated_title_content_type
            );

            $abbr_tag->display();
        }
    }
637091
public function getHtmlTable(): string
  {
    $this->addClass(static::$class);

    $ret = $this->getHtmlPrefix();

    $ret .= Html::generateTag('table', $this->attributes);

    $childAttributes = ['class' => static::$class];

    // Generate HTML code for the table header.
    $ret .= Html::generateTag('thead', $childAttributes);
    $ret .= $this->getHtmlHeader();
    $ret .= '</thead>';

    // Generate HTML code for the table body.
    $ret .= Html::generateTag('tbody', $childAttributes);
    $ret .= $this->rows;
    $ret .= '</tbody>';

    // Generate HTML code for the table header.
    $ret .= Html::generateTag('tfoot', $childAttributes);
    $ret .= $this->getHtmlFooter();
    $ret .= '</tfoot>';

    $ret .= '</table>';

    $ret .= $this->getHtmlPostfix();

    return $ret;
  }
89418
public function header()
    {
        // If we have tab content
        if (isset($this->content_html{0})) {
            // Tab sub-headers html
            $sub_headers = '';

            // Iterate tab group tabs only if there is atleast two sub headers
            if (sizeof($this->tabs) > 2) {
                foreach ($this->tabs as $tab) {
                    // Don't render this tab as sub header
                    if ($tab == $this) continue;

                    // Render tab header as sub-header
                    $sub_headers .= m()->view($this->header_view)->tab($tab)->output();
                }
            }

            // Render just last tab
            $this->header_html .= m()
                ->view($this->header_view)
                ->sub_headers($sub_headers)
                ->class(isset($sub_headers{0}) ? 'sub-tabs-list' : '')
                ->tab($this)// Pass this tab object as main
                ->tab_id(end($this->tabs)->id)// Pass last tabs object id as identifier
                ->output();
        }

        return $this->header_html;
    }