blob: b8f4f0c8912eebcdbb70a103e07b33b3621c90e9 [file] [log] [blame]
<?php
class myAddressDirective extends ezcDocumentRstDirective
{
public function toDocbook( DOMDocument $document, DOMElement $root )
{
$address = $document->createElement( 'address' );
$root->appendChild( $address );
if ( !empty( $this->node->parameters ) )
{
$name = $document->createElement( 'personname', htmlspecialchars( $this->node->parameters ) );
$address->appendChild( $name );
}
if ( isset( $this->node->options['street'] ) )
{
$street = $document->createElement( 'street', htmlspecialchars( $this->node->options['street'] ) );
$address->appendChild( $street );
}
}
}
?>