styler.php 480 B

123456789101112131415161718192021222324
  1. <?php
  2. class ezcDocumentOdtTestStyler implements ezcDocumentOdtStyler
  3. {
  4. public $odtDocument;
  5. public $seenElements = array();
  6. public function init( DOMDocument $odtDocument )
  7. {
  8. $this->odtDocument = $odtDocument;
  9. }
  10. public function applyStyles( ezcDocumentLocateable $docBookElement, DOMElement $odtElement )
  11. {
  12. $this->seenElements[] = array(
  13. $docBookElement->tagName,
  14. $odtElement->tagName
  15. );
  16. }
  17. }
  18. ?>