| Conditions | 5 |
| Paths | 12 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | public function _html() |
||
| 58 | { |
||
| 59 | $this->_htmlcode = "<{$this->_element}"; |
||
| 60 | foreach ($this->_attributes as $attribute => $value) { |
||
| 61 | if (!empty($value)) { |
||
| 62 | $this->_htmlcode .= sprintf(' %s="%s" ', $attribute, $value); |
||
| 63 | } |
||
| 64 | } |
||
| 65 | $this->_htmlcode .= '>'; |
||
| 66 | |||
| 67 | if ($this->_text) { |
||
| 68 | $this->_htmlcode .= $this->_text; |
||
| 69 | } |
||
| 70 | |||
| 71 | foreach ($this->_siblings as $obj) { |
||
| 72 | $this->_htmlcode .= $obj->fetch(); |
||
| 73 | } |
||
| 74 | |||
| 75 | $this->_htmlcode .= "</{$this->_element}>"; |
||
| 76 | |||
| 77 | return $this->_htmlcode; |
||
| 78 | } |
||
| 91 |