diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-08-16 10:32:35 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-08-16 10:32:35 +0200 |
commit | 4a7384bc0ce1893a432bf4b7d67bca23796fe9db (patch) | |
tree | 5623c66a3f66445284529d6207e4ab4a2edb2810 /library/Text_Highlighter/Text/Highlighter/Renderer/XML.php | |
parent | c664a4bdcd1bd578f5ec3c2884f7c97e9f68d2d7 (diff) | |
parent | 90bc21f2d560d879d7eaf05a85af6d6dca53ebac (diff) | |
download | volse-hubzilla-4a7384bc0ce1893a432bf4b7d67bca23796fe9db.tar.gz volse-hubzilla-4a7384bc0ce1893a432bf4b7d67bca23796fe9db.tar.bz2 volse-hubzilla-4a7384bc0ce1893a432bf4b7d67bca23796fe9db.zip |
Merge branch '2.6RC'2.6
Diffstat (limited to 'library/Text_Highlighter/Text/Highlighter/Renderer/XML.php')
-rw-r--r-- | library/Text_Highlighter/Text/Highlighter/Renderer/XML.php | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/library/Text_Highlighter/Text/Highlighter/Renderer/XML.php b/library/Text_Highlighter/Text/Highlighter/Renderer/XML.php deleted file mode 100644 index 7b6fb2106..000000000 --- a/library/Text_Highlighter/Text/Highlighter/Renderer/XML.php +++ /dev/null @@ -1,104 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ -/** - * XML renderer. - * - * Based on the HTML renderer by Andrey Demenev. - * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. - * - * @category Text - * @package Text_Highlighter - * @author Stoyan Stefanov <ssttoo@gmail.com> - * @copyright 2006 Stoyan Stefanov - * @license http://www.php.net/license/3_0.txt PHP License - * @version CVS: $Id$ - * @link http://pear.php.net/package/Text_Highlighter - */ - -/** - * @ignore - */ - -require_once 'Text/Highlighter/Renderer.php'; -require_once 'Text/Highlighter/Renderer/Array.php'; -require_once 'XML/Serializer.php'; - -/** - * XML renderer, based on Andrey Demenev's HTML renderer. - * - * @author Stoyan Stefanov <ssttoo@gmail.com> - * @category Text - * @package Text_Highlighter - * @copyright 2006 Stoyan Stefanov - * @license http://www.php.net/license/3_0.txt PHP License - * @version Release: 0.5.0 - * @link http://pear.php.net/package/Text_Highlighter - */ - -class Text_Highlighter_Renderer_XML extends Text_Highlighter_Renderer_Array -{ - - - /** - * Options for XML_Serializer - * - * @access private - * @var array - */ - var $_serializer_options = array(); - - - /** - * Resets renderer state - * - * Descendents of Text_Highlighter call this method from the constructor, - * passing $options they get as parameter. - * - * @access protected - */ - function reset() - { - parent::reset(); - if (isset($this->_options['xml_serializer'])) { - $this->_serializer_options = $this->_options['xml_serializer']; - } - } - - - /** - * Signals that no more tokens are available - * - * @abstract - * @access public - */ - function finalize() - { - - // call parent's finalize(), then serialize array into XML - parent::finalize(); - $output = parent::getOutput(); - - $serializer = new XML_Serializer($this->_serializer_options); - $result = $serializer->serialize($output); - if ($result === true) { - $this->_output = $serializer->getSerializedData(); - } - } - - -} - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * c-hanging-comment-ender-p: nil - * End: - */ - -?> |