PHP Класс HtmlWriter

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_depth integer The directory structure depth. Used to calculate relative paths.
$_doclet doclet The doclet that created this object.
$_id str The id attribute value, used for selecting style.
$_output str The output body.
$_sections str[][] The section titles to place in the header and footer.

Открытые методы

Метод Описание
_doctype ( ) : str Get the HTML DOCTYPE for this output
_htmlFooter ( ) : str Build the HTML footer.
_htmlHeader ( $title ) : str Build the HTML header. Includes doctype definition, and sections, meta data and window title.
_processInlineTags ( &$tag, $first = FALSE ) : str Convert inline tags into a string for outputting.
_processTags ( &$tags ) : str Format tags for output.
_shellFooter ( $path, $footer ) : str Build the HTML shell footer. Includes the end of the section, and page footer.
_shellHeader ( $path ) : str Build the HTML shell header. Includes beginning of the section, and the page header.
_write ( $path, $title, $shell, $footer = true ) Write the HTML page to disk using the given path.
htmlWriter ( &$doclet ) Writer constructor.

Описание методов

_doctype() публичный Метод

Get the HTML DOCTYPE for this output
public _doctype ( ) : str
Результат str

_htmlFooter() публичный Метод

Build the HTML footer.
public _htmlFooter ( ) : str
Результат str

_htmlHeader() публичный Метод

Build the HTML header. Includes doctype definition, and sections, meta data and window title.
public _htmlHeader ( $title ) : str
Результат str

_processInlineTags() публичный Метод

Convert inline tags into a string for outputting.
public _processInlineTags ( &$tag, $first = FALSE ) : str
Результат str The string representation of the elements doc tags

_processTags() публичный Метод

Format tags for output.
public _processTags ( &$tags ) : str
Результат str The string representation of the elements doc tags

_shellFooter() публичный Метод

Build the HTML shell footer. Includes the end of the section, and page footer.
public _shellFooter ( $path, $footer ) : str
Результат str

_shellHeader() публичный Метод

Build the HTML shell header. Includes beginning of the section, and the page header.
public _shellHeader ( $path ) : str
Результат str

_write() публичный Метод

Write the HTML page to disk using the given path.
public _write ( $path, $title, $shell, $footer = true )

htmlWriter() публичный Метод

Writer constructor.
public htmlWriter ( &$doclet )

Описание свойств

$_depth публичное свойство

The directory structure depth. Used to calculate relative paths.
public int $_depth
Результат integer

$_doclet публичное свойство

The doclet that created this object.
public doclet $_doclet
Результат doclet

$_id публичное свойство

The id attribute value, used for selecting style.
public str $_id
Результат str

$_output публичное свойство

The output body.
public str $_output
Результат str

$_sections публичное свойство

The section titles to place in the header and footer.
public str[][] $_sections
Результат str[][]