apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: Var_Dump

Source Location: /Var_Dump-0.9.2/Var_Dump.php

Class Overview




Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 50]


[ Top ]


Class Variables

$options = array(
        'display_mode' => 'XHTML_Text'
    )

[line 60]

Run-time configuration options.
  • Access: public

Type:   array


[ Top ]

$renderer =  NULL

[line 77]

Rendering object.
  • Access: public

Type:   object


[ Top ]

$rendererOptions = array()

[line 70]

Rendering configuration options.

See Var_Dump/Renderer/*.php for the complete list of options

  • Access: public

Type:   array


[ Top ]



Method Detail

Var_Dump (Constructor)   [line 92]

Var_Dump Var_Dump( [array $options = array()], [array $rendererOptions = array()])

Class constructor.

The factory approach must be used in relationship with the toString() method. See Var_Dump/Renderer/*.php for the complete list of options

  • See: Var_Dump::toString()
  • Access: public

Parameters:

array   $options   —  Global parameters.
array   $rendererOptions   —  Parameters for the rendering.

[ Top ]

display   [line 325]

string display( mixed $expression, [bool $return = FALSE])

Outputs or returns a string representation of a variable.
  • Return: If returned, the string representation of the variable.
  • See: Var_Dump::singleton(), Var_Dump::displayInit()
  • Access: public

Parameters:

mixed   $expression   —  The variable to parse.
bool   $return   —  Whether the variable should be echoed or returned.

[ Top ]

displayInit   [line 309]

void displayInit( [array $options = array()], [array $rendererOptions = array()])

Initialise the singleton object used by the display() method.
  • See: Var_Dump::singleton(), Var_Dump::display()
  • Access: public

Parameters:

array   $options   —  Global parameters.
array   $rendererOptions   —  Parameters for the rendering.

[ Top ]

factory   [line 117]

void &factory( [array $options = array()], [array $rendererOptions = array()])

Attempt to return a concrete Var_Dump instance.

The factory approach must be used in relationship with the toString() method. See Var_Dump/Renderer/*.php for the complete list of options

  • See: Var_Dump::toString()
  • Access: public

Parameters:

array   $options   —  Global parameters.
array   $rendererOptions   —  Parameters for the rendering.

[ Top ]

singleton   [line 291]

object Var_Dump &singleton( )

Attempt to return a concrete singleton Var_Dump instance.

The singleton approach must be used in relationship with the displayInit() and display() methods. See Var_Dump/Renderer/*.php for the complete list of options

  • Return: instance
  • See: Var_Dump::display(), Var_Dump::displayInit()
  • Access: public

[ Top ]

toString   [line 131]

string toString( mixed $expression)

Uses a renderer object to return the string representation of a variable.
  • Return: The string representation of the variable.
  • Access: public

Parameters:

mixed   $expression   —  The variable to parse.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 10:16:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.