1 | <?php |
||
14 | class HtmlIcon extends HtmlSingleElement { |
||
15 | protected $icon; |
||
16 | protected $size; |
||
17 | protected $attributes; |
||
18 | protected $color; |
||
19 | |||
20 | public function __construct($identifier,$icon) { |
||
25 | |||
26 | public function getIcon() { |
||
29 | |||
30 | /** |
||
31 | * sets the icon |
||
32 | * @param string $icon |
||
33 | * @return \Ajax\semantic\html\HtmlIcon |
||
34 | */ |
||
35 | public function setIcon($icon) { |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
||
43 | */ |
||
44 | public function setSize($size) { |
||
48 | |||
49 | public function setDisabled(){ |
||
52 | |||
53 | /** |
||
54 | * Icon used as a simple loader |
||
55 | * @return \Ajax\semantic\html\HtmlIcon |
||
56 | */ |
||
57 | public function asLoader(){ |
||
60 | |||
61 | /** |
||
62 | * An icon can be fitted, without any space to the left or right of it. |
||
63 | * @return \Ajax\semantic\html\HtmlIcon |
||
64 | */ |
||
65 | public function setFitted(){ |
||
68 | |||
69 | /** |
||
70 | * @param string $sens horizontally or vertically |
||
71 | * @return \Ajax\semantic\html\HtmlIcon |
||
72 | */ |
||
73 | public function setFlipped($sens="horizontally"){ |
||
76 | |||
77 | /** |
||
78 | * @param string $sens clockwise or counterclockwise |
||
79 | * @return \Ajax\semantic\html\HtmlIcon |
||
80 | */ |
||
81 | public function setRotated($sens="clockwise"){ |
||
84 | |||
85 | /** |
||
86 | * icon formatted as a link |
||
87 | * @return \Ajax\semantic\html\HtmlIcon |
||
88 | */ |
||
89 | public function asLink(){ |
||
92 | |||
93 | public function setCircular($inverted=false){ |
||
99 | |||
100 | /** |
||
101 | * @return \Ajax\semantic\html\HtmlIcon |
||
102 | */ |
||
103 | public function setInverted(){ |
||
106 | |||
107 | /** |
||
108 | * @param string $inverted |
||
109 | * @return \Ajax\semantic\html\HtmlIcon |
||
110 | */ |
||
111 | public function setBordered($inverted=false){ |
||
117 | |||
118 | /** |
||
119 | * @param string $color |
||
120 | * @return \Ajax\semantic\html\HtmlIcon |
||
121 | */ |
||
122 | public function setColor($color){ |
||
125 | |||
126 | /** |
||
127 | * @return \Ajax\semantic\html\HtmlIcon |
||
128 | */ |
||
129 | public function toCorner(){ |
||
132 | } |