1 | <?php |
||
16 | class HtmlIcon extends HtmlSingleElement { |
||
17 | protected $icon; |
||
18 | protected $size; |
||
19 | protected $attributes; |
||
20 | protected $color; |
||
21 | |||
22 | public function __construct($identifier, $icon) { |
||
27 | |||
28 | public function getIcon() { |
||
31 | |||
32 | /** |
||
33 | * sets the icon |
||
34 | * @param string $icon |
||
35 | * @return \Ajax\semantic\html\HtmlIcon |
||
36 | */ |
||
37 | public function setIcon($icon) { |
||
41 | |||
42 | /** |
||
43 | * adds an icon in icon element |
||
44 | * @param string $icon |
||
45 | * @return \Ajax\semantic\html\HtmlIcon |
||
46 | */ |
||
47 | public function addToIcon($icon) { |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | * {@inheritDoc} |
||
54 | * |
||
55 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
||
56 | */ |
||
57 | public function setSize($size) { |
||
61 | |||
62 | public function setDisabled() { |
||
65 | |||
66 | /** |
||
67 | * Icon used as a simple loader |
||
68 | * @return \Ajax\semantic\html\HtmlIcon |
||
69 | */ |
||
70 | public function asLoader() { |
||
73 | |||
74 | /** |
||
75 | * An icon can be fitted, without any space to the left or right of it. |
||
76 | * @return \Ajax\semantic\html\HtmlIcon |
||
77 | */ |
||
78 | public function setFitted() { |
||
81 | |||
82 | /** |
||
83 | * |
||
84 | * @param string $sens horizontally or vertically |
||
85 | * @return \Ajax\semantic\html\HtmlIcon |
||
86 | */ |
||
87 | public function setFlipped($sens="horizontally") { |
||
90 | |||
91 | /** |
||
92 | * |
||
93 | * @param string $sens clockwise or counterclockwise |
||
94 | * @return \Ajax\semantic\html\HtmlIcon |
||
95 | */ |
||
96 | public function setRotated($sens="clockwise") { |
||
99 | |||
100 | public function setFloated($direction="right") { |
||
103 | |||
104 | /** |
||
105 | * icon formatted as a link |
||
106 | * @return \Ajax\semantic\html\HtmlIcon |
||
107 | */ |
||
108 | public function asLink($href=NULL) { |
||
114 | |||
115 | public function setCircular($inverted=false) { |
||
121 | |||
122 | /** |
||
123 | * |
||
124 | * @return \Ajax\semantic\html\HtmlIcon |
||
125 | */ |
||
126 | public function setInverted() { |
||
129 | |||
130 | public function setOutline() { |
||
133 | |||
134 | /** |
||
135 | * |
||
136 | * @param string $inverted |
||
137 | * @return \Ajax\semantic\html\HtmlIcon |
||
138 | */ |
||
139 | public function setBordered($inverted=false) { |
||
145 | |||
146 | /** |
||
147 | * |
||
148 | * @param string $color |
||
149 | * @return \Ajax\semantic\html\HtmlIcon |
||
150 | */ |
||
151 | public function setColor($color) { |
||
154 | |||
155 | /** |
||
156 | * |
||
157 | * @return \Ajax\semantic\html\HtmlIcon |
||
158 | */ |
||
159 | public function toCorner() { |
||
162 | |||
163 | public function addLabel($label) { |
||
167 | |||
168 | public static function label($identifier, $icon, $label) { |
||
172 | } |