Path

ez components / documentation / api reference / 2009.1 / document


eZ Components 2009.1

Document: ezcDocumentRstContentsDirective

[ Tutorial ] [ Conversion ] [ Styles ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDocumentRstContentsDirective

Visitor for RST contents directives [source]

Implemented Interfaces

Parents

ezcDocumentRstDirective
   |
   --ezcDocumentRstContentsDirective

Inherited Member Variables

From ezcDocumentRstDirective:
protected  ezcDocumentRstDirective::$ast
protected  ezcDocumentRstDirective::$node
protected  ezcDocumentRstDirective::$path
protected  ezcDocumentRstDirective::$visitor

Method Summary

protected void generateTocList( $node, $root, $depth )
Generate XHtml TOC
public void toDocbook( $document, $root )
Transform directive to docbook
public void toXhtml( $document, $root )
Transform directive to HTML

Inherited Methods

From ezcDocumentRstDirective :
public void ezcDocumentRstDirective::__construct()
Construct directive from AST and node
public void ezcDocumentRstDirective::setSourceVisitor()
Set the calling vaisitor
public abstract void ezcDocumentRstDirective::toDocbook()
Transform directive to docbook

Methods

generateTocList

void generateTocList( ezcDocumentRstNode $node, $root, int $depth )
Generate XHtml TOC
Recursively generate a XHtml table of contents from the given section with the specified depth. Use -1 as depth to display the complete section tree.

Parameters

Name Type Description
$node ezcDocumentRstSectionNode  
$root DOMElement  
$depth int  

toDocbook

void toDocbook( $document, $root )
Transform directive to docbook
Create a docbook XML structure at the directives position in the document.

Parameters

Name Type Description
$document DOMDocument  
$root DOMElement  

Redefinition of

Method Description
ezcDocumentRstDirective::toDocbook() Transform directive to docbook

toXhtml

void toXhtml( $document, $root )
Transform directive to HTML
Create a XHTML structure at the directives position in the document.

Parameters

Name Type Description
$document DOMDocument  
$root DOMElement  

Last updated: Mon, 29 Jun 2009