Ajax/semantic/html/HtmlButton.php 1 location
|
@@ 69-75 (lines=7) @@
|
| 66 |
|
$this->content=$visible.$hidden; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
public function addIcon($icon,$before=true){ |
| 70 |
|
$iconO=$icon; |
| 71 |
|
if(\is_string($icon)){ |
| 72 |
|
$iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
| 73 |
|
} |
| 74 |
|
$this->addContent($iconO,$before); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/* |
| 78 |
|
* (non-PHPdoc) |
Ajax/semantic/html/HtmlGroupIcons.php 1 location
|
@@ 25-32 (lines=8) @@
|
| 22 |
|
return $this->addToPropertyCtrl("class", $size, IconSize::getConstants()); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
public function addIcon($icon,$size=""){ |
| 26 |
|
$iconO=$icon; |
| 27 |
|
if(\is_string($icon)){ |
| 28 |
|
$iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
| 29 |
|
$iconO->setSize($size); |
| 30 |
|
} |
| 31 |
|
$this->addContent($iconO); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function getIcon($index){ |
| 35 |
|
return $this->content[$index]; |