PHP Class htmlWriter

Afficher le fichier Open project: peej/phpdoctor

Méthodes publiques

Свойство Type Description
$_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.

Méthodes publiques

Méthode Description
_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.
_nav ( $path ) : str Build the navigation bar
_processInlineTags ( &$tag, $first = FALSE ) : str Convert inline tags into a string for outputting.
_processTags ( &$tags ) : str Format tags for output.
_shellFooter ( $path ) : 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.
_sourceLocation ( $doc )
_write ( $path, $title, $shell ) Write the HTML page to disk using the given path.
htmlWriter ( &$doclet ) Writer constructor.

Method Details

_doctype() public méthode

Get the HTML DOCTYPE for this output
public _doctype ( ) : str
Résultat str

_htmlFooter() public méthode

Build the HTML footer.
public _htmlFooter ( ) : str
Résultat str

_htmlHeader() public méthode

Build the HTML header. Includes doctype definition, and sections, meta data and window title.
public _htmlHeader ( $title ) : str
Résultat str

_nav() public méthode

Build the navigation bar
public _nav ( $path ) : str
Résultat str

_processInlineTags() public méthode

Convert inline tags into a string for outputting.
public _processInlineTags ( &$tag, $first = FALSE ) : str
Résultat str The string representation of the elements doc tags

_processTags() public méthode

Format tags for output.
public _processTags ( &$tags ) : str
Résultat str The string representation of the elements doc tags

_shellFooter() public méthode

Build the HTML shell footer. Includes the end of the section, and page footer.
public _shellFooter ( $path ) : str
Résultat str

_shellHeader() public méthode

Build the HTML shell header. Includes beginning of the section, and the page header.
public _shellHeader ( $path ) : str
Résultat str

_sourceLocation() public méthode

public _sourceLocation ( $doc )

_write() public méthode

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

htmlWriter() public méthode

Writer constructor.
public htmlWriter ( &$doclet )

Property Details

$_depth public_oe property

The directory structure depth. Used to calculate relative paths.
public int $_depth
Résultat integer

$_doclet public_oe property

The doclet that created this object.
public doclet $_doclet
Résultat doclet

$_id public_oe property

The id attribute value, used for selecting style.
public str $_id
Résultat str

$_output public_oe property

The output body.
public str $_output
Résultat str

$_sections public_oe property

The section titles to place in the header and footer.
public str[][] $_sections
Résultat str[][]