Hoa central
Generic.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Xyl\Interpreter\Html;
38 
39 use Hoa\Stream;
40 
49 class Generic extends Concrete
50 {
57  protected function paint(Stream\IStream\Out $out)
58  {
59  $name = $this->getName();
60 
61  if (0 !== $this->_contentFlow) {
62  $out->writeAll('<' . $name . $this->readAttributesAsString() . '>');
63  $this->computeValue($out);
64  $out->writeAll('</' . $name . '>');
65 
66  return;
67  }
68 
69  $out->writeAll('<' . $name . $this->readAttributesAsString() . ' />');
70 
71  return;
72  }
73 }
readAttributesAsString($compute=true)
Definition: Concrete.php:282
computeValue(Stream\IStream\Out $out=null)
Definition: Concrete.php:410
paint(Stream\IStream\Out $out)
Definition: Generic.php:57