API Documentation

Debug.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Debug
version
$Id: Debug.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Debug

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Debug

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Debug
Properties
$_sapi
Methods
getSapi
setSapi
dump

Description

Concrete class for generating debug dumps related to the output source.

Properties

$_sapi

string $_sapi = 'null'

Details

$_sapi
string
visibility
protected
default
null
final
false
static
true

Methods

dump

dump( mixed $var, string $label = null, bool $echo = true ) : string

Debug helper function. This is a wrapper for var_dump() that adds the <pre /> tags, cleans up newlines and indents, and runs htmlentities() before output.

Arguments
$var
mixed
The variable to dump.
$label
string
OPTIONAL Label to prepend to output.
$echo
bool
OPTIONAL Echo output if true.
Output
string
Details
visibility
public
final
false
static
true

getSapi

getSapi( ) : string;

Get the current value of the debug output environment.

This defaults to the value of PHP_SAPI.

Output
string;
Details
visibility
public
final
false
static
true

setSapi

setSapi( string $sapi ) : void;

Set the debug ouput environment.

Setting a value of null causes Zend_Debug to use PHP_SAPI.

Arguments
$sapi
string
Output
void;
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.