Source for file XML.php
Documentation is available at XML.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | 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 world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Frederic Poeydomenge <frederic.poeydomenge@free.fr> |
// +----------------------------------------------------------------------+
require_once 'Var_Dump/Renderer.php';
* A concrete renderer for Var_Dump
* Returns a representation of a variable in XML
* DTD : $PEARDIR/data/Var_Dump/renderer-xml.dtd
* @author Frederic Poeydomenge <frederic.poeydomenge@free.fr>
* Default configuration options.
* @param array $options Parameters for the rendering.
* Returns the string representation of a variable
* @return string The string representation of the variable.
// {{{ _toString_Single()
* Returns the string representation of a single variable
* @return string The string representation of a single variable.
* Returns the string representation of a multiple variable
* @return string The string representation of a multiple variable.
for ($c = 0 ; $c < $counter ; $c++ ) {
if ($this->depth[$c] > 0 ) {
$this->spacer($depth) . '<type>group</type>' . "\n" .
$this->spacer($depth++ ) . '<value>' . "\n";
$txt .= $this->spacer($depth) . '</group>' . "\n";
if ($this->depth[$c] > 0 ) {
$this->spacer(-- $depth) . '</value>' . "\n" .
$this->spacer(-- $depth) . '</element>' . "\n";
$this->spacer(++ $depth) . '<element>' . "\n" .
$this->spacer(++ $depth) . '<key>' .
$this->spacer($depth) . '<type>' .
$this->spacer($depth-- ) . '<value>' .
$this->spacer($depth-- ) . '</element>' . "\n";
* Returns a spacer string to prefix the line
* @param integer $depth Depth level.
* @return string Spacer string
Documentation generated on Mon, 11 Mar 2019 10:16:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|