Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function addContentIcon($icon, $caption=NULL, $direction=Direction::LEFT) { |
||
25 | if ($direction === Direction::RIGHT) { |
||
26 | $result=new HtmlSemDoubleElement("", "span", "", $caption); |
||
27 | $result->setFloated($direction); |
||
28 | $result->addIcon($icon); |
||
29 | $this->addContent($result); |
||
30 | } else { |
||
31 | $this->addIcon($icon); |
||
32 | $result=$this->addContent($caption); |
||
33 | } |
||
34 | return $result; |
||
35 | } |
||
36 | } |