ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Whoops\Util\HtmlDumperOutput Class Reference

Used as output callable for Symfony::dump() More...

+ Collaboration diagram for Whoops\Util\HtmlDumperOutput:

Public Member Functions

 __invoke ($line, $depth)
 
 getOutput ()
 
 clear ()
 

Private Attributes

 $output
 

Detailed Description

Used as output callable for Symfony::dump()

See also
TemplateHelper::dump()

Definition at line 14 of file HtmlDumperOutput.php.

Member Function Documentation

◆ __invoke()

Whoops\Util\HtmlDumperOutput::__invoke (   $line,
  $depth 
)

Definition at line 18 of file HtmlDumperOutput.php.

19  {
20  // A negative depth means "end of dump"
21  if ($depth >= 0) {
22  // Adds a two spaces indentation to the line
23  $this->output .= str_repeat(' ', $depth) . $line . "\n";
24  }
25  }

◆ clear()

Whoops\Util\HtmlDumperOutput::clear ( )

Definition at line 32 of file HtmlDumperOutput.php.

33  {
34  $this->output = null;
35  }

◆ getOutput()

Whoops\Util\HtmlDumperOutput::getOutput ( )

Definition at line 27 of file HtmlDumperOutput.php.

References Whoops\Util\HtmlDumperOutput\$output.

28  {
29  return $this->output;
30  }

Field Documentation

◆ $output

Whoops\Util\HtmlDumperOutput::$output
private

Definition at line 16 of file HtmlDumperOutput.php.

Referenced by Whoops\Util\HtmlDumperOutput\getOutput().


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