PHP Класс Krumo

This class stores the Krumo API for rendering and displaying the structured information it is reporting
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$expand_all static::$expand_all = 1; krumo($my_array);
$sort

Открытые методы

Метод Описание
backtrace ( ) Prints a debug backtrace
calculate_relative_path ( $file, $returnDir = false ) : string Calculate the relative path of a given absolute URL
cascade ( array $cascade = null ) Set a cascade configuration array.
classes ( ) Prints a list of all currently declared classes.
conf ( ) Prints a list of all your configuration settings.
cookie ( ) Prints a list of all the values from the $_COOKIE array.
defines ( ) Prints a list of all currently declared constants.
disable ( ) : boolean Disable Krumo
dump ( $data, $second = '' ) : boolean Dump information about a variable
enable ( ) : boolean Enable Krumo
env ( ) Prints a list of all the values from the $_ENV array.
extensions ( ) Prints a list of all currently loaded PHP extensions.
functions ( ) Prints a list of all currently declared functions.
get ( ) Prints a list of all the values from the $_GET array.
get_icon ( $name, $title )
get_separator ( ) : string Get the separator to use for separating 'key' / 'value' pairs. Defaults to ' => '
headers ( ) Prints a list of all HTTP request headers.
htmlHeaders ( )
includes ( ) Prints a list of all currently included (or required) files.
ini ( string $ini_file ) : boolean Prints a list of all the values from an INI file.
interfaces ( ) Prints a list of all currently declared interfaces (PHP5 only).
path ( ) Prints a list of the specified directories under your include_path option.
phpini ( ) Prints a list of the configuration settings read from php.ini
post ( ) Prints a list of all the values from the $_POST array.
request ( ) Prints a list of all the values from the $_REQUEST array.
server ( ) Prints a list of all the values from the $_SERVER array.
session ( ) Prints a list of all the values from the $_SESSION array.
setConfig ( $config )
setLineNumberTestCallback ( $callback )
version ( ) : string Return Krumo version

Защищенные методы

Метод Описание
getCharset ( )
heading ( $first, $code = '', $rest = '' )

Приватные методы

Метод Описание
_array ( mixed $data, string $name ) Render a dump for an array
_boolean ( mixed $data, string $name ) Render a dump for a boolean value
_config ( string $group, string $name, mixed $fallback = null ) : mixed Returns values from Krumo's configuration
_css ( ) : boolean Print the skin (CSS)
_debug ( boolean $state = null ) : boolean Get\Set Krumo state: whether it is enabled or disabled
_dump ( mixed &$data, string $name = '…' ) Dump information about a variable
_float ( mixed $data, string $name ) Render a dump for a float value
_hive ( &$bee )
_integer ( mixed $data, string $name ) Render a dump for a integer value
_isCollapsed ( $level, $childCount ) : boolean Determines if a given node will be collapsed or not.
_marker ( ) : string Return the marked used to stain arrays and objects in order to detect recursions
_null ( string $name ) : string Render a dump for a NULL value
_object ( mixed &$data, string $name ) Render a dump for an object
_recursion ( ) Render a block that detected recursion
_resource ( mixed $data, string $name ) Render a dump for a resource
_string ( mixed $data, string $name ) Render a dump for a string value
_vars ( &$data ) Render a dump for the properties of an array or objeect
cli_dump ( )
isCli ( ) Detect if we're running in CLI mode`
is_assoc ( $var )
is_datetime ( $name, $value )
plural ( $number, $word ) : string Properly add "S" depending on the number of items static::plural(1,"show") = "show" static::plural(4,"show") = "shows"
sanitizeName ( $name )

Описание методов

backtrace() публичный статический Метод

Prints a debug backtrace
public static backtrace ( )

calculate_relative_path() публичный статический Метод

Calculate the relative path of a given absolute URL
public static calculate_relative_path ( $file, $returnDir = false ) : string
$file string The file to calculate the relative path of
$returnDir bool If set to true, only return the dirname
Результат string

cascade() публичный статический Метод

Each value in the array is the maximum number of entries that node can have before it is being collapsed. The last value is repeated for all further levels. Example: array(10,5,0) - Nodes from the first level are expanded if they have less than or equal to 10 child nodes. Nodes from the second level are ex- panded if they have less or equal to 5 nodes and all lower levels are collapsed. Note: To reset, simply call this function with no arguments.
public static cascade ( array $cascade = null )
$cascade array Cascading information

classes() публичный статический Метод

Prints a list of all currently declared classes.
public static classes ( )

conf() публичный статический Метод

Prints a list of all your configuration settings.
public static conf ( )

defines() публичный статический Метод

Prints a list of all currently declared constants.
public static defines ( )

disable() публичный статический Метод

Disable Krumo
public static disable ( ) : boolean
Результат boolean

dump() публичный статический Метод

Dump information about a variable
public static dump ( $data, $second = '' ) : boolean
Результат boolean

enable() публичный статический Метод

Enable Krumo
public static enable ( ) : boolean
Результат boolean

env() публичный статический Метод

Prints a list of all the values from the $_ENV array.
public static env ( )

extensions() публичный статический Метод

Prints a list of all currently loaded PHP extensions.
public static extensions ( )

functions() публичный статический Метод

Prints a list of all currently declared functions.
public static functions ( )

get() публичный статический Метод

Prints a list of all the values from the $_GET array.
public static get ( )

getCharset() защищенный статический Метод

protected static getCharset ( )

get_icon() публичный статический Метод

public static get_icon ( $name, $title )

get_separator() публичный статический Метод

Get the separator to use for separating 'key' / 'value' pairs. Defaults to ' => '
public static get_separator ( ) : string
Результат string

headers() публичный статический Метод

Prints a list of all HTTP request headers.
public static headers ( )

heading() защищенный статический Метод

protected static heading ( $first, $code = '', $rest = '' )

htmlHeaders() публичный статический Метод

public static htmlHeaders ( )

includes() публичный статический Метод

Prints a list of all currently included (or required) files.
public static includes ( )

ini() публичный статический Метод

Prints a list of all the values from an INI file.
public static ini ( string $ini_file ) : boolean
$ini_file string
Результат boolean

interfaces() публичный статический Метод

Prints a list of all currently declared interfaces (PHP5 only).
public static interfaces ( )

path() публичный статический Метод

Prints a list of the specified directories under your include_path option.
public static path ( )

phpini() публичный статический Метод

Prints a list of the configuration settings read from php.ini
public static phpini ( )

post() публичный статический Метод

Prints a list of all the values from the $_POST array.
public static post ( )

request() публичный статический Метод

Prints a list of all the values from the $_REQUEST array.
public static request ( )

server() публичный статический Метод

Prints a list of all the values from the $_SERVER array.
public static server ( )

session() публичный статический Метод

Prints a list of all the values from the $_SESSION array.
public static session ( )

setConfig() публичный статический Метод

public static setConfig ( $config )

setLineNumberTestCallback() публичный статический Метод

public static setLineNumberTestCallback ( $callback )

version() публичный статический Метод

Return Krumo version
public static version ( ) : string
Результат string

Описание свойств

$expand_all публичное статическое свойство

static::$expand_all = 1; krumo($my_array);
public static $expand_all

$sort публичное статическое свойство

public static $sort