1 | <?php |
||
13 | class HtmlIcon extends HtmlSemSingleElement { |
||
14 | protected $_icon; |
||
15 | |||
16 | public function __construct($identifier, $icon) { |
||
20 | |||
21 | public function getIcon() { |
||
24 | |||
25 | /** |
||
26 | * sets the icon |
||
27 | * @param string $icon |
||
28 | * @return \Ajax\semantic\html\HtmlIcon |
||
29 | */ |
||
30 | public function setIcon($icon) { |
||
38 | |||
39 | /** |
||
40 | * adds an icon in icon element |
||
41 | * @param string $icon |
||
42 | * @return \Ajax\semantic\html\HtmlIcon |
||
43 | */ |
||
44 | public function addToIcon($icon) { |
||
48 | |||
49 | /** |
||
50 | * Icon used as a simple loader |
||
51 | * @return \Ajax\semantic\html\HtmlIcon |
||
52 | */ |
||
53 | public function asLoader() { |
||
56 | |||
57 | /** |
||
58 | * An icon can be fitted, without any space to the left or right of it. |
||
59 | * @return \Ajax\semantic\html\HtmlIcon |
||
60 | */ |
||
61 | public function setFitted() { |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @param string $sens horizontally or vertically |
||
68 | * @return \Ajax\semantic\html\HtmlIcon |
||
69 | */ |
||
70 | public function setFlipped($sens="horizontally") { |
||
73 | |||
74 | /** |
||
75 | * |
||
76 | * @param string $sens clockwise or counterclockwise |
||
77 | * @return \Ajax\semantic\html\HtmlIcon |
||
78 | */ |
||
79 | public function setRotated($sens="clockwise") { |
||
82 | |||
83 | /** |
||
84 | * icon formatted as a link |
||
85 | * @return \Ajax\semantic\html\HtmlIcon |
||
86 | */ |
||
87 | public function asLink($href=NULL) { |
||
93 | |||
94 | public function setOutline() { |
||
97 | |||
98 | /** |
||
99 | * |
||
100 | * @param string $inverted |
||
101 | * @return \Ajax\semantic\html\HtmlIcon |
||
102 | */ |
||
103 | public function setBordered($inverted=false) { |
||
109 | |||
110 | /** |
||
111 | * |
||
112 | * @return \Ajax\semantic\html\HtmlIcon |
||
113 | */ |
||
114 | public function toCorner() { |
||
117 | |||
118 | public function addLabel($label) { |
||
122 | |||
123 | public static function label($identifier, $icon, $label) { |
||
127 | } |