Generates plain list of parsed heading structure.
@access		public
@return		string		HTML of list containing heading structure.
423352
public function renderList( $itemClassPrefix = "level-" ){
		$list	= array();																			//  
		foreach( $this->headings as $item ){														//  
			$link	= UI_HTML_Tag::create( 'a', $item->label, array( 'href' => "#".$item->id ) );	//  
			$attributes		= array( 'class' => $itemClassPrefix.$item->level );							//  
			$list[]	= UI_HTML_Elements::ListItem( $link, 0, $attributes );							//  
		}
		return UI_HTML_Tag::create( 'ul', $list, array( 'class' => 'index-list' ) );				//  
	}
511360
public function getArticleHeaders(): Generator
    {
        yield from $this->sendCommand(new Command('HEAD'));

        $data = yield from $this->encoder->readData($this->stream);
        return HeaderBag::parse($data);
    }
385043
public function toHeading()
    {
        $results = '';

        foreach ($this->getColumns() as $column) {
            if (in_array($name = $column->getName(), $this->ignores)) {
                continue;
            }

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

        return $results;
    }
64233
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        if ($this->using_null_replication) {
            $set->addEntrySet(
                $this->getPrototypeWidget()->getHtmlHeadEntrySet()
            );
        } else {
            $widgets = $this->getWidgets();
            foreach ($widgets as $widget) {
                $set->addEntrySet($widget->getHtmlHeadEntrySet());
            }
        }

        return $set;
    }
1229523
public function generate()
	{
		$title         = $this->getTitle();
		$description   = $this->getDescription();
		$keywords      = $this->getKeywords();
		$miscellaneous = $this->getMiscellaneous();
		$canonical     = $this->getCanonical();

		$html[] = '<title>'.$title.'</title>'.PHP_EOL;

		if (! is_null($description)) {
			$html[] = '<meta name="description" content="'.$description.'">';
		}

		if (! is_null($keywords)) {
			$html[] = '<meta name="keywords" content="'.$keywords.'">';
		}

		if (! is_null($miscellaneous)) {
			foreach ($miscellaneous as $name => $content) {
				$html[] = '<meta name="'.$name.'" content="'.$content.'">';
			}
		}

		if (! is_null($canonical)) {
			$currentUrl = $this->request->fullUrl();

			if ($canonical != $currentUrl) {
				$html[] = PHP_EOL.'<link rel="canonical" href="'.$canonical.'">';
			}
		}

		return implode(PHP_EOL, $html);
	}
1315084
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

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

        return $set;
    }
530350
public function getHeaderRowHTML()
    {
        $output = [];
        foreach ($this->columns as $name => $column) {

            // If multiple formatters are defined, use the first for the header cell
            if (is_array($column)) {
                $column = $column[0];
            }

            if (!is_int($name)) {
                $field = $this->model->getElement($name);

                $output[] = $column->getHeaderCellHTML($field);
            } else {
                $output[] = $column->getHeaderCellHTML();
            }
        }

        return implode('', $output);
    }
1044287
protected function getHtml()
    {
        array_walk($this->lines, 'trim');
        $html = trim(implode('', $this->lines));
        $this->lines = [];
        return $html;
    }
1080748
protected function getHead()
    {
        $head = $this->getDocument()->createElement('head');
        $metahttp = $this->getDocument()->createElement('meta');
        $metahttp->setAttribute('http-equiv', 'Content-Type');
        $metahttp->setAttribute('content', 'text/html; charset=utf-8');
        $head->appendChild($metahttp);
        $head->appendChild($this->getDocument()->createElement('title', 'Generated List'));

        foreach ($this->getStylesheets() as $href) {
            $stylesheet = $this->getDocument()->createElement('link');
            $stylesheet->setAttribute('href', $href);
            $stylesheet->setAttribute('rel', 'stylesheet');
            $stylesheet->setAttribute('type', 'text/css');
            $head->appendChild($stylesheet);
        }

        return $head;
    }
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;
    }
210165
protected function getFuzzyChapterTitles() {

		$chapters = [];

		$xml = $this->getZipContent( 'content.xml' );

		// introduce a stylesheet
		$proc = new \XSLTProcessor();
		$xsl = new \DOMDocument();
		$xsl->load( __DIR__ . '/xsl/odt2html.xsl' );
		$proc->importStylesheet( $xsl );

		// throw it back into the DOM
		$dom_doc = $proc->transformToDoc( $xml );

		// get all headings
		$headings = $dom_doc->getElementsByTagName( $this->tag );

		// populate chapters with title names
		for ( $i = 0; $i < $headings->length; $i++ ) {
			$chapters[] = trim( $headings->item( $i )->nodeValue );
		}

		// get rid of h1 tags with empty values
		$chapters = array_values( array_filter( $chapters ) );

		// default chapter title if there are no h1 headings in the document
		if ( 0 === count( $chapters ) ) {
			$chapters[] = '__UNKNOWN__';
		}

		return $chapters;
	}
310564
public function getSentHeaders()
    {
        $compiledHeaders = [];

        foreach ($this->headers as $header)
        {
            $compiledHeaders[] = (string) $header;
        }

        return implode("\n", $compiledHeaders);
    }
494401
public function GetHtmlHeadIncludes()
    {
        $aIncludes = parent::GetHtmlHeadIncludes();
        if (!is_array($aIncludes)) {
            $aIncludes = array();
        }

        $this->LoadManufacturer();
        if (!is_null($this->oActiveManufacturer) && !empty($this->oActiveManufacturer->fieldCss)) {
            $aIncludes[] = '<link href="'.TGlobal::OutHTML($this->oActiveManufacturer->fieldCss).'" rel="stylesheet" type="text/css" />';
        }

        return $aIncludes;
    }
81557
protected function parseHtml()
    {
        $parser = new Parser($this->htmlStringOrFile);
        $document = $parser->setTableClass($this->tableClass)
            ->setRowClass($this->rowClass)
            ->setCellClass($this->cellClass)
            ->parse();

        $this->document = $document;

        return $document;
    }
1135258
public function parseHeaders()
    {
        $headers = '';
        foreach ($this->headers as $key => $value) {
            if ($key !== 'to') {
                $headers .= $key . ': ' . $this->getHeaderLine($key) . "\r\n";
            }
        }

        return $headers;
    }
1021577
public function html()
    {
        if (!$this->nodes) {
            throw new \InvalidArgumentException('The current node list is empty.');
        }

        $html = '';
        foreach ($this->getNode(0)->childNodes as $child) {
            $html .= $child->ownerDocument->saveHTML($child);
        }

        return $html;
    }
1361760
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        if ($this->tile !== null) {
            $set->addEntrySet($this->tile->getHtmlHeadEntrySet());
        }

        foreach ($this->groups as $group) {
            $set->addEntrySet($group->getHtmlHeadEntrySet());
        }

        return $set;
    }