API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Dumper Class Reference

Public Member Functions

 setIndentation ($num)
 
 dump ($input, $inline=0, $indent=0, $exceptionOnInvalidType=false, $objectSupport=false)
 

Protected Attributes

 $indentation = 4
 

Detailed Description

Dumper dumps PHP variables to YAML strings.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Member Function Documentation

◆ dump()

dump (   $input,
  $inline = 0,
  $indent = 0,
  $exceptionOnInvalidType = false,
  $objectSupport = false 
)

Dumps a PHP value to YAML.

Parameters
mixed$inputThe PHP value
int$inlineThe level where you switch to inline YAML
int$indentThe level of indentation (used internally)
bool$exceptionOnInvalidTypeTrue if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
bool$objectSupportTrue if object support is enabled, false otherwise
Returns
string The YAML representation of the PHP value
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setIndentation()

setIndentation (   $num)

Sets the indentation.

Parameters
int$numThe amount of spaces to use for indentation of nested nodes

Field Documentation

◆ $indentation

$indentation = 4
protected

The documentation for this class was generated from the following file: