Source for file Renderer.php
Documentation is available at Renderer.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> |
// +----------------------------------------------------------------------+
* A base class for Var_Dump renderers, must be inherited by all such.
* @author Frederic Poeydomenge <frederic.poeydomenge@free.fr>
* Run-time configuration options.
* Default configuration options.
* See Var_Dump/Renderer/*.php for the complete list of options
* Array containing the element family : start/finish group, start/finish element
* Array containing the element depths
* Array containing the element types
* Array containing the element values
* Array containing the strlen of keys for all the nested arrays
* @param array $options Parameters for the rendering.
* Attempt to return a concrete singleton Var_Dump_Renderer instance.
* @param string $mode Name of the renderer.
* @param array $options Parameters for the rendering.
if (!isset ($instances)) {
if (!isset ($instances[$mode])) {
@include_once 'Var_Dump/Renderer/' . $mode . '.php';
$className = 'Var_Dump_Renderer_' . $mode;
$instances[$mode] = new $className($options);
return PEAR ::raiseError ('Var_Dump: renderer "' . $mode . '" not found', TRUE );
$obj = & $instances[$mode];
$obj->setOptions ($options);
return $instances[$mode];
* Set run-time configuration options for the renderer
* @param array $options Run-time configuration options.
* Initialize internal data structures for the rendering.
* @param array $family Containing the element family.
* @param array $depth Containing the element depths.
* @param array $type Containing the element types.
* @param array $value Containing the element values.
* @param array $keyLen Strlen of keys for all the nested arrays
function initialize(&$family, &$depth, &$type, &$value, &$keyLen)
* Returns the string representation of a variable
* @return string The string representation of the variable.
Documentation generated on Mon, 11 Mar 2019 10:16:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|