Path

ez components / documentation / api reference / latest / document


eZ Components latest

Document: ezcDocumentDocbookToHtmlSpecialParagraphHandler

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

Class: ezcDocumentDocbookToHtmlSpecialParagraphHandler

Visit special paragraphs [source]
Transform the paragraphs with special annotations like <note> and <caution> to paragraphs inside the HTML document with a class representing the meaning of the docbook elements. The mapping which is used inside this method is used throughout the document comoponent and compatible with the RTS mapping.

Parents

ezcDocumentElementVisitorHandler
   |
   --ezcDocumentDocbookToHtmlBaseHandler
      |
      --ezcDocumentDocbookToHtmlSpecialParagraphHandler

Member Variables

protected array $types = array(
'note' => 'note',
'tip' => 'notice',
'warning' => 'warning',
'important' => 'attention',
'caution' => 'danger',
)

Handled paragraph names / types

Method Summary

public mixed handle( $converter, $node, $root )
Handle a node

Inherited Methods

From ezcDocumentDocbookToHtmlBaseHandler :
protected DOMElement ezcDocumentDocbookToHtmlBaseHandler::getHead()
Get head of HTML document
From ezcDocumentElementVisitorHandler :
public abstract mixed ezcDocumentElementVisitorHandler::handle()
Handle a node.

Methods

handle

mixed handle( ezcDocumentElementVisitorConverter $converter, $node, mixed $root )
Handle a node
Handle / transform a given node, and return the result of the conversion.

Parameters

Name Type Description
$converter ezcDocumentElementVisitorConverter  
$node DOMElement  
$root mixed  

Redefinition of

Method Description
ezcDocumentElementVisitorHandler::handle() Handle a node.

Last updated: Mon, 21 Dec 2009