Hoa central
Debug.php
Go to the documentation of this file.
1 <?php
2 
38 
39 use Hoa\Core;
40 use Hoa\Stream;
41 use Hoa\Xyl;
42 
52 {
53  protected static $_message = null;
54 
61  protected function paint(Stream\IStream\Out $out)
62  {
63  // Early draft.
64  $out->writeAll(
65  '<div class="debug"' .
66  $this->readAttributesAsString() .
67  '>' . "\n"
68  );
69  $out->writeAll(self::$_message);
70  $out->writeAll('</div>' . "\n");
71 
72  return;
73  }
74 
75  public static function receiveException(Core\Event\Bucket $bucket)
76  {
77  // Early draft.
78  self::$_message = $bucket->getData()->raise();
79 
80  return;
81  }
82 }
paint(Stream\IStream\Out $out)
Definition: Debug.php:61
static receiveException(Core\Event\Bucket $bucket)
Definition: Debug.php:75