Print out the page header.

@param   string  $title     The title to display.
512261
protected function header($title = null) {
        global $OUTPUT;

        // Print the page heading.
        echo $OUTPUT->header();

        if ($title === null) {
            $title = get_string('tours', 'tool_usertours');
        }

        echo $OUTPUT->heading($title);
    }
1274476
public function renderHeader()
    {
        if ($this->title !== false) {
            echo CHtml::openTag('div', $this->htmlHeaderOptions);
            if ($this->title) {
                $this->title = '<h3>' . $this->title . '</h3>';

                if ($this->headerIcon) {
                    $this->title = '<i class="' . $this->headerIcon . '"></i>' . $this->title;
                }

                echo $this->title;
                $this->renderButtons();
            }
            echo CHtml::closeTag('div');
        }
    }
466678
public function setTitle($title)
    {
        // Check if title already exists
        $headTitle = $this->selectElement('title')->item(0);
        if (!is_null($headTitle)) {
            $headTitle_new = $this->create('title', $title);
            $headTitle->parentNode->replaceChild($headTitle_new, $headTitle);
        } else {
            $headTitle = $this->create('title', $title);
            $this->appendToHead($headTitle);
        }

        return $this;
    }
650369
public function getTitle($title)
    {
        return sprintf($this->style['title'], $this->fitText($this->window->getWidth(), $title));
    }
829592
protected function setTitle($title)
    {
        self::writeFullTag(
            $title,
            'title',
            false,
            'news:title',
            $this->validator,
            'validateTitle',
            $this->exception,
            'Provided title is not a valid value.'
        );

        return $this;
    }
1169466
public function writeHeadline( string $title, int $level ) : void
	{
		$this->write( "%s %s\n\n", str_repeat( '#', $level ), $title );
	}
648190
protected function _generateListGroupText($title)
    {
        if (is_array($title)) {
            $text = '';
            if (!empty($title['header'])) {
                $text .= $this->tag('h4', $title['header'], ['class' => 'list-group-item-heading']);
            }
            if (!empty($title['text'])) {
                $text .= $this->para('list-group-item-text', $title['text']);
            }
        } else {
            $text = $title;
        }
        return $text;
    }
770777
public static function setTitle(string $title): bool
    {
        if (!$title || 'Darwin' === \PHP_OS) {
            return false;
        }

        if (\function_exists('cli_set_process_title')) {
            \cli_set_process_title($title);
        } elseif (\function_exists('setproctitle')) {
            \setproctitle($title);
        }

        if ($error = \error_get_last()) {
            throw new \RuntimeException($error['message']);
        }

        return false;
    }
1054572
function set_title($title) {
        global $PAGE;

        $this->page = null;
        $this->title = $title;
        // set_title calls format_string itself so no probs there
        $PAGE->set_title($this->title);
    }
1130825
private function header($text)
    {
        $this->io()->write($this->line(strlen($text)));
        $this->io()->write($this->color($text, $this->getConfig('fg-header')));
        $this->io()->write($this->line(strlen($text)));
    }
1134556
public function setTitle($title, $subtitle = null)
    {
        $this->title = $title;
        $this->subtitle = $subtitle;
    }
847221
public function title($sub = '', $title = 'Vinala Lumos')
    {
        if ($title != '') {
            $this->console->line("\n".$title);
            //
            $underline = '';
            for ($i = 0; $i < strlen($title); $i++) {
                $underline .= '=';
            }
            //
            $this->console->line($underline);
        }
        //
        if ($sub != '') {
            $this->console->line("\n".$sub);
        }
    }
540273
private function checkTitle(&$title)
    {
        if ( ! is_string($title)) {
            $type = gettype($title);

            throw new InvalidArgumentException("The title must be a string value, [$type] is given.");
        }

        $title = trim($title);

        if (empty($title)) {
            throw new InvalidArgumentException('The title is required and must not be empty.');
        }
    }
870200
protected function displayTitle()
    {
        if ($this->title !== null) {
            $header_tag = new SwatHtmlTag('h' . $this->getHeaderLevel());
            $header_tag->class = 'swat-frame-title';
            $header_tag->setContent($this->title, $this->title_content_type);

            if ($this->subtitle === null) {
                $header_tag->display();
            } else {
                $span_tag = new SwatHtmlTag('span');
                $span_tag->class = 'swat-frame-subtitle';
                $span_tag->setContent(
                    $this->subtitle,
                    $this->title_content_type
                );

                $header_tag->open();
                $header_tag->displayContent();
                echo $this->title_separator;
                $span_tag->display();
                $header_tag->close();
            }
        }
    }
325527
public function setTitle( $title )
	{
	    $this->title = $title;
		$this->jsWriter->setOption( 'title', $title );

		return $this;
	}
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;

    }
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();
        }
    }