@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | private $default; |
17 | 17 | private $options; |
18 | 18 | |
19 | - public function __construct($identifier, $caption,$default=NULL) { |
|
19 | + public function __construct($identifier, $caption, $default=NULL) { |
|
20 | 20 | parent::__construct($identifier, "select"); |
21 | 21 | $this->setProperty("name", $identifier); |
22 | 22 | $this->setProperty("class", "form-control"); |
@@ -25,21 +25,21 @@ discard block |
||
25 | 25 | $this->options=array(); |
26 | 26 | } |
27 | 27 | |
28 | - public function addOption($element,$value="",$selected=false){ |
|
29 | - if($element instanceof HtmlOption){ |
|
28 | + public function addOption($element, $value="", $selected=false) { |
|
29 | + if ($element instanceof HtmlOption) { |
|
30 | 30 | $option=$element; |
31 | - }else{ |
|
32 | - $option=new HtmlOption($this->identifier."-".count($this->options), $element,$value); |
|
31 | + }else { |
|
32 | + $option=new HtmlOption($this->identifier."-".count($this->options), $element, $value); |
|
33 | 33 | } |
34 | - if($selected || $option->getValue()==$this->getProperty("value")){ |
|
34 | + if ($selected || $option->getValue()==$this->getProperty("value")) { |
|
35 | 35 | $option->select(); |
36 | 36 | } |
37 | 37 | $this->options[]=$option; |
38 | 38 | } |
39 | 39 | |
40 | 40 | public function setValue($value) { |
41 | - foreach ( $this->options as $option ) { |
|
42 | - if (strcasecmp($option->getValue(),$value)===0) { |
|
41 | + foreach ($this->options as $option) { |
|
42 | + if (strcasecmp($option->getValue(), $value)===0) { |
|
43 | 43 | $option->setProperty("selected", ""); |
44 | 44 | } |
45 | 45 | } |
@@ -52,23 +52,23 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function compile(JsUtils $js=NULL, View $view=NULL) { |
54 | 54 | $this->content=array(); |
55 | - if(isset($this->default)){ |
|
55 | + if (isset($this->default)) { |
|
56 | 56 | $default=new HtmlOption("", $this->default); |
57 | 57 | $this->content[]=$default; |
58 | 58 | } |
59 | - foreach ($this->options as $option){ |
|
59 | + foreach ($this->options as $option) { |
|
60 | 60 | $this->content[]=$option; |
61 | 61 | } |
62 | 62 | return parent::compile($js, $view); |
63 | 63 | } |
64 | 64 | |
65 | - public function fromArray($array){ |
|
66 | - if(JArray::isAssociative($array)){ |
|
67 | - foreach ($array as $k=>$v){ |
|
65 | + public function fromArray($array) { |
|
66 | + if (JArray::isAssociative($array)) { |
|
67 | + foreach ($array as $k=>$v) { |
|
68 | 68 | $this->addOption($v, $k); |
69 | 69 | } |
70 | - }else{ |
|
71 | - foreach ($array as $v){ |
|
70 | + }else { |
|
71 | + foreach ($array as $v) { |
|
72 | 72 | $this->addOption($v, $v); |
73 | 73 | } |
74 | 74 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $this->addOption($function($object)); |
102 | 102 | } |
103 | 103 | |
104 | - public function setSize($size){ |
|
104 | + public function setSize($size) { |
|
105 | 105 | return $this->setProperty("size", $size); |
106 | 106 | } |
107 | 107 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function addOption($element,$value="",$selected=false){ |
29 | 29 | if($element instanceof HtmlOption){ |
30 | 30 | $option=$element; |
31 | - }else{ |
|
31 | + } else{ |
|
32 | 32 | $option=new HtmlOption($this->identifier."-".count($this->options), $element,$value); |
33 | 33 | } |
34 | 34 | if($selected || $option->getValue()==$this->getProperty("value")){ |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | foreach ($array as $k=>$v){ |
68 | 68 | $this->addOption($v, $k); |
69 | 69 | } |
70 | - }else{ |
|
70 | + } else{ |
|
71 | 71 | foreach ($array as $v){ |
72 | 72 | $this->addOption($v, $v); |
73 | 73 | } |
@@ -5,8 +5,8 @@ |
||
5 | 5 | use Ajax\common\BaseEnum; |
6 | 6 | |
7 | 7 | class Color extends BaseEnum { |
8 | - const RED="red",ORANGE="orange",YELLOW="yellow", |
|
9 | - OLIVE="olive",GREEN="green",TEAL="teal", |
|
10 | - BLUE="blue",VIOLET="violet",PURPLE="purple", |
|
11 | - PINK="pink",BROWN="brown",GREY="grey",BLACK="black"; |
|
8 | + const RED="red", ORANGE="orange", YELLOW="yellow", |
|
9 | + OLIVE="olive", GREEN="green", TEAL="teal", |
|
10 | + BLUE="blue", VIOLET="violet", PURPLE="purple", |
|
11 | + PINK="pink", BROWN="brown", GREY="grey", BLACK="black"; |
|
12 | 12 | } |
13 | 13 | \ No newline at end of file |
@@ -2,5 +2,5 @@ |
||
2 | 2 | namespace Ajax\semantic\html\base; |
3 | 3 | use Ajax\common\BaseEnum; |
4 | 4 | abstract class IconSize extends BaseEnum { |
5 | - const MINI="mini", TINY="tiny", SMALL="small", NORMAL="",LARGE="large", BIG="big", HUGE="huge", MASSIVE="massive"; |
|
5 | + const MINI="mini", TINY="tiny", SMALL="small", NORMAL="", LARGE="large", BIG="big", HUGE="huge", MASSIVE="massive"; |
|
6 | 6 | } |
7 | 7 | \ No newline at end of file |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * Set the button value |
36 | 36 | * @param string $value |
37 | - * @return \Ajax\semantic\html\HtmlButton |
|
37 | + * @return HtmlButton |
|
38 | 38 | */ |
39 | 39 | public function setValue($value) { |
40 | 40 | $this->content=$value; |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * define the button style |
46 | - * @param string|int $cssStyle |
|
47 | - * @return \Ajax\semantic\html\HtmlButton default : "" |
|
46 | + * @param string $cssStyle |
|
47 | + * @return HtmlButton default : "" |
|
48 | 48 | */ |
49 | 49 | public function setStyle($cssStyle) { |
50 | 50 | return $this->addToProperty("class",$cssStyle); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * @param string|HtmlIcon $icon |
|
90 | + * @param string $icon |
|
91 | 91 | * @return \Ajax\semantic\html\elements\HtmlButton |
92 | 92 | */ |
93 | 93 | public function asIcon($icon){ |
@@ -47,20 +47,20 @@ discard block |
||
47 | 47 | * @return \Ajax\semantic\html\HtmlButton default : "" |
48 | 48 | */ |
49 | 49 | public function setStyle($cssStyle) { |
50 | - return $this->addToProperty("class",$cssStyle); |
|
50 | + return $this->addToProperty("class", $cssStyle); |
|
51 | 51 | } |
52 | 52 | |
53 | - public function setFocusable(){ |
|
53 | + public function setFocusable() { |
|
54 | 54 | $this->setProperty("tabindex", "0"); |
55 | 55 | } |
56 | 56 | |
57 | - public function setAnimated($content,$animation=""){ |
|
57 | + public function setAnimated($content, $animation="") { |
|
58 | 58 | $this->setTagName("div"); |
59 | 59 | $this->addToProperty("class", "animated ".$animation); |
60 | - $visible=new HtmlSemDoubleElement("visible-".$this->identifier,"div"); |
|
60 | + $visible=new HtmlSemDoubleElement("visible-".$this->identifier, "div"); |
|
61 | 61 | $visible->setClass("visible content"); |
62 | 62 | $visible->setContent($this->content); |
63 | - $hidden=new HtmlSemDoubleElement("hidden-".$this->identifier,"div"); |
|
63 | + $hidden=new HtmlSemDoubleElement("hidden-".$this->identifier, "div"); |
|
64 | 64 | $hidden->setClass("hidden content"); |
65 | 65 | $hidden->setContent($content); |
66 | 66 | $this->content=$visible.$hidden; |
@@ -73,16 +73,16 @@ discard block |
||
73 | 73 | * @param boolean $labeled |
74 | 74 | * @return \Ajax\semantic\html\elements\HtmlIcon |
75 | 75 | */ |
76 | - public function addIcon($icon,$before=true,$labeled=false){ |
|
76 | + public function addIcon($icon, $before=true, $labeled=false) { |
|
77 | 77 | $iconO=$icon; |
78 | - if(\is_string($icon)){ |
|
78 | + if (\is_string($icon)) { |
|
79 | 79 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
80 | 80 | } |
81 | - if($labeled!==false){ |
|
81 | + if ($labeled!==false) { |
|
82 | 82 | $this->addToProperty("class", "labeled icon"); |
83 | 83 | $this->tagName="div"; |
84 | 84 | } |
85 | - $this->addContent($iconO,$before); |
|
85 | + $this->addContent($iconO, $before); |
|
86 | 86 | return $iconO; |
87 | 87 | } |
88 | 88 | |
@@ -90,9 +90,9 @@ discard block |
||
90 | 90 | * @param string|HtmlIcon $icon |
91 | 91 | * @return \Ajax\semantic\html\elements\HtmlButton |
92 | 92 | */ |
93 | - public function asIcon($icon){ |
|
93 | + public function asIcon($icon) { |
|
94 | 94 | $iconO=$icon; |
95 | - if(\is_string($icon)){ |
|
95 | + if (\is_string($icon)) { |
|
96 | 96 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
97 | 97 | } |
98 | 98 | $this->addToProperty("class", "icon"); |
@@ -106,14 +106,14 @@ discard block |
||
106 | 106 | * @param string $before |
107 | 107 | * @return \Ajax\semantic\html\elements\HtmlLabel |
108 | 108 | */ |
109 | - public function addLabel($caption,$before=false){ |
|
109 | + public function addLabel($caption, $before=false) { |
|
110 | 110 | $this->tagName="div"; |
111 | 111 | $this->addToProperty("class", "labeled"); |
112 | - $this->content=new HtmlButton("button-".$this->identifier,$this->content); |
|
112 | + $this->content=new HtmlButton("button-".$this->identifier, $this->content); |
|
113 | 113 | $this->content->setTagName("div"); |
114 | - $label=new HtmlLabel("label-".$this->identifier,$caption,"a"); |
|
114 | + $label=new HtmlLabel("label-".$this->identifier, $caption, "a"); |
|
115 | 115 | $label->setBasic(); |
116 | - $this->addContent($label,$before); |
|
116 | + $this->addContent($label, $before); |
|
117 | 117 | return $label; |
118 | 118 | } |
119 | 119 | /* |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function fromArray($array) { |
124 | 124 | $array=parent::fromArray($array); |
125 | - foreach ( $array as $key => $value ) { |
|
125 | + foreach ($array as $key => $value) { |
|
126 | 126 | $this->setProperty($key, $value); |
127 | 127 | } |
128 | 128 | return $array; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * can be formatted to appear on dark backgrounds |
133 | 133 | * @return \Ajax\semantic\html\elements\HtmlButton |
134 | 134 | */ |
135 | - public function setInverted(){ |
|
135 | + public function setInverted() { |
|
136 | 136 | return $this->addToProperty("class", "inverted"); |
137 | 137 | } |
138 | 138 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * show it is currently the active user selection |
141 | 141 | * @return \Ajax\semantic\html\elements\HtmlButton |
142 | 142 | */ |
143 | - public function setActive(){ |
|
143 | + public function setActive() { |
|
144 | 144 | return $this->addToProperty("class", "active"); |
145 | 145 | } |
146 | 146 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * show a loading indicator |
149 | 149 | * @return \Ajax\semantic\html\elements\HtmlButton |
150 | 150 | */ |
151 | - public function asLoader(){ |
|
151 | + public function asLoader() { |
|
152 | 152 | return $this->addToProperty("class", "loading"); |
153 | 153 | } |
154 | 154 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * hint towards a positive consequence |
157 | 157 | * @return \Ajax\semantic\html\elements\HtmlButton |
158 | 158 | */ |
159 | - public function setPositive(){ |
|
159 | + public function setPositive() { |
|
160 | 160 | return $this->addToProperty("class", "positive"); |
161 | 161 | } |
162 | 162 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * hint towards a negative consequence |
165 | 165 | * @return \Ajax\semantic\html\elements\HtmlButton |
166 | 166 | */ |
167 | - public function setNegative(){ |
|
167 | + public function setNegative() { |
|
168 | 168 | return $this->addToProperty("class", "negative"); |
169 | 169 | } |
170 | 170 | |
@@ -172,21 +172,21 @@ discard block |
||
172 | 172 | * formatted to toggle on/off |
173 | 173 | * @return \Ajax\semantic\html\elements\HtmlButton |
174 | 174 | */ |
175 | - public function setToggle(){ |
|
175 | + public function setToggle() { |
|
176 | 176 | return $this->addToProperty("class", "toggle"); |
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
180 | 180 | * @return \Ajax\semantic\html\elements\HtmlButton |
181 | 181 | */ |
182 | - public function setFluid(){ |
|
182 | + public function setFluid() { |
|
183 | 183 | return $this->addToProperty("class", "fluid"); |
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | 187 | * @return \Ajax\semantic\html\elements\HtmlButton |
188 | 188 | */ |
189 | - public function setCircular(){ |
|
189 | + public function setCircular() { |
|
190 | 190 | return $this->addToProperty("class", "circular"); |
191 | 191 | } |
192 | 192 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * button is less pronounced |
195 | 195 | * @return \Ajax\semantic\html\elements\HtmlButton |
196 | 196 | */ |
197 | - public function setBasic(){ |
|
197 | + public function setBasic() { |
|
198 | 198 | return $this->addToProperty("class", "basic"); |
199 | 199 | } |
200 | 200 | } |
201 | 201 | \ No newline at end of file |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | class HtmlImg extends HtmlSingleElement { |
9 | 9 | |
10 | - public function __construct($identifier,$src="",$alt="") { |
|
10 | + public function __construct($identifier, $src="", $alt="") { |
|
11 | 11 | parent::__construct($identifier, "img"); |
12 | 12 | $this->setSrc($src); |
13 | 13 | $this->setAlt($alt); |
@@ -11,22 +11,22 @@ |
||
11 | 11 | */ |
12 | 12 | class HtmlIconGroups extends HtmlSemDoubleElement { |
13 | 13 | |
14 | - public function __construct($identifier,$size="") { |
|
14 | + public function __construct($identifier, $size="") { |
|
15 | 15 | parent::__construct($identifier, "i"); |
16 | 16 | $this->setProperty("class", "icons"); |
17 | 17 | $this->setSize($size); |
18 | 18 | } |
19 | 19 | |
20 | - public function addIcon($icon,$size=""){ |
|
20 | + public function addIcon($icon, $size="") { |
|
21 | 21 | $iconO=$icon; |
22 | - if(\is_string($icon)){ |
|
22 | + if (\is_string($icon)) { |
|
23 | 23 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
24 | 24 | $iconO->setSize($size); |
25 | 25 | } |
26 | 26 | $this->addContent($iconO); |
27 | 27 | } |
28 | 28 | |
29 | - public function getIcon($index){ |
|
29 | + public function getIcon($index) { |
|
30 | 30 | return $this->content[$index]; |
31 | 31 | } |
32 | 32 | } |
33 | 33 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | protected $attributes; |
18 | 18 | protected $color; |
19 | 19 | |
20 | - public function __construct($identifier,$icon) { |
|
20 | + public function __construct($identifier, $icon) { |
|
21 | 21 | parent::__construct($identifier, "i"); |
22 | 22 | $this->icon=$icon; |
23 | 23 | $this->_template='<i class="%icon% icon %size% %attributes% %color%"></i>'; |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
43 | 43 | */ |
44 | 44 | public function setSize($size) { |
45 | - $this->setMemberCtrl($this->size, $size,Size::getConstants()); |
|
45 | + $this->setMemberCtrl($this->size, $size, Size::getConstants()); |
|
46 | 46 | return $this; |
47 | 47 | } |
48 | 48 | |
49 | - public function setDisabled(){ |
|
49 | + public function setDisabled() { |
|
50 | 50 | return $this->addToMember($this->attributes, "disabled"); |
51 | 51 | } |
52 | 52 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * Icon used as a simple loader |
55 | 55 | * @return \Ajax\semantic\html\HtmlIcon |
56 | 56 | */ |
57 | - public function asLoader(){ |
|
57 | + public function asLoader() { |
|
58 | 58 | return $this->addToMember($this->attributes, "loading"); |
59 | 59 | } |
60 | 60 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * An icon can be fitted, without any space to the left or right of it. |
63 | 63 | * @return \Ajax\semantic\html\HtmlIcon |
64 | 64 | */ |
65 | - public function setFitted(){ |
|
65 | + public function setFitted() { |
|
66 | 66 | return $this->addToMember($this->attributes, "fitted"); |
67 | 67 | } |
68 | 68 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param string $sens horizontally or vertically |
71 | 71 | * @return \Ajax\semantic\html\HtmlIcon |
72 | 72 | */ |
73 | - public function setFlipped($sens="horizontally"){ |
|
73 | + public function setFlipped($sens="horizontally") { |
|
74 | 74 | return $this->addToMember($this->attributes, "flipped ".$sens); |
75 | 75 | } |
76 | 76 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @param string $sens clockwise or counterclockwise |
79 | 79 | * @return \Ajax\semantic\html\HtmlIcon |
80 | 80 | */ |
81 | - public function setRotated($sens="clockwise"){ |
|
81 | + public function setRotated($sens="clockwise") { |
|
82 | 82 | return $this->addToMember($this->attributes, "rotated ".$sens); |
83 | 83 | } |
84 | 84 | |
@@ -86,13 +86,13 @@ discard block |
||
86 | 86 | * icon formatted as a link |
87 | 87 | * @return \Ajax\semantic\html\HtmlIcon |
88 | 88 | */ |
89 | - public function asLink(){ |
|
89 | + public function asLink() { |
|
90 | 90 | return $this->addToMember($this->attributes, "link"); |
91 | 91 | } |
92 | 92 | |
93 | - public function setCircular($inverted=false){ |
|
93 | + public function setCircular($inverted=false) { |
|
94 | 94 | $invertedStr=""; |
95 | - if($inverted!==false) |
|
95 | + if ($inverted!==false) |
|
96 | 96 | $invertedStr=" inverted"; |
97 | 97 | return $this->addToMember($this->attributes, "circular".$invertedStr); |
98 | 98 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * @return \Ajax\semantic\html\HtmlIcon |
102 | 102 | */ |
103 | - public function setInverted(){ |
|
103 | + public function setInverted() { |
|
104 | 104 | return $this->addToMember($this->attributes, "inverted"); |
105 | 105 | } |
106 | 106 | |
@@ -108,9 +108,9 @@ discard block |
||
108 | 108 | * @param string $inverted |
109 | 109 | * @return \Ajax\semantic\html\HtmlIcon |
110 | 110 | */ |
111 | - public function setBordered($inverted=false){ |
|
111 | + public function setBordered($inverted=false) { |
|
112 | 112 | $invertedStr=""; |
113 | - if($inverted!==false) |
|
113 | + if ($inverted!==false) |
|
114 | 114 | $invertedStr=" inverted"; |
115 | 115 | return $this->addToMember($this->attributes, "bordered".$invertedStr); |
116 | 116 | } |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | * @param string $color |
120 | 120 | * @return \Ajax\semantic\html\HtmlIcon |
121 | 121 | */ |
122 | - public function setColor($color){ |
|
122 | + public function setColor($color) { |
|
123 | 123 | return $this->setMemberCtrl($this->color, $color, Color::getConstants()); |
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | 127 | * @return \Ajax\semantic\html\HtmlIcon |
128 | 128 | */ |
129 | - public function toCorner(){ |
|
129 | + public function toCorner() { |
|
130 | 130 | return $this->addToMember($this->attributes, "corner"); |
131 | 131 | } |
132 | 132 | } |
133 | 133 | \ No newline at end of file |
@@ -92,8 +92,9 @@ discard block |
||
92 | 92 | |
93 | 93 | public function setCircular($inverted=false){ |
94 | 94 | $invertedStr=""; |
95 | - if($inverted!==false) |
|
96 | - $invertedStr=" inverted"; |
|
95 | + if($inverted!==false) { |
|
96 | + $invertedStr=" inverted"; |
|
97 | + } |
|
97 | 98 | return $this->addToMember($this->attributes, "circular".$invertedStr); |
98 | 99 | } |
99 | 100 | |
@@ -110,8 +111,9 @@ discard block |
||
110 | 111 | */ |
111 | 112 | public function setBordered($inverted=false){ |
112 | 113 | $invertedStr=""; |
113 | - if($inverted!==false) |
|
114 | - $invertedStr=" inverted"; |
|
114 | + if($inverted!==false) { |
|
115 | + $invertedStr=" inverted"; |
|
116 | + } |
|
115 | 117 | return $this->addToMember($this->attributes, "bordered".$invertedStr); |
116 | 118 | } |
117 | 119 |
@@ -17,17 +17,17 @@ |
||
17 | 17 | $this->setProperty("class", "ui container"); |
18 | 18 | } |
19 | 19 | |
20 | - public function setFluid(){ |
|
20 | + public function setFluid() { |
|
21 | 21 | return $this->addToProperty("class", "fluid"); |
22 | 22 | } |
23 | 23 | |
24 | - public function setAlignement($value="justified"){ |
|
25 | - if($value!=="justified") |
|
24 | + public function setAlignement($value="justified") { |
|
25 | + if ($value!=="justified") |
|
26 | 26 | $value.=" aligned"; |
27 | 27 | return $this->addToProperty("class", $value); |
28 | 28 | } |
29 | 29 | |
30 | - public function setTextContainer(){ |
|
30 | + public function setTextContainer() { |
|
31 | 31 | return $this->addToProperty("class", "text"); |
32 | 32 | } |
33 | 33 | } |
34 | 34 | \ No newline at end of file |
@@ -22,8 +22,9 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | public function setAlignement($value="justified"){ |
25 | - if($value!=="justified") |
|
26 | - $value.=" aligned"; |
|
25 | + if($value!=="justified") { |
|
26 | + $value.=" aligned"; |
|
27 | + } |
|
27 | 28 | return $this->addToProperty("class", $value); |
28 | 29 | } |
29 | 30 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | class HtmlDivider extends HtmlDoubleElement { |
13 | 13 | |
14 | - public function __construct($identifier, $content="",$tagName="div") { |
|
14 | + public function __construct($identifier, $content="", $tagName="div") { |
|
15 | 15 | parent::__construct($identifier, $tagName); |
16 | 16 | $this->setClass("ui divider"); |
17 | 17 | $this->content=$content; |
@@ -21,23 +21,23 @@ discard block |
||
21 | 21 | * vertical divider |
22 | 22 | * @return \Ajax\semantic\html\elements\HtmlDivider |
23 | 23 | */ |
24 | - public function setVertical(){ |
|
25 | - return $this->addToPropertyUnique("class", "vertical", array("vertical","horizontal")); |
|
24 | + public function setVertical() { |
|
25 | + return $this->addToPropertyUnique("class", "vertical", array("vertical", "horizontal")); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | 29 | * horizontal divider |
30 | 30 | * @return \Ajax\semantic\html\elements\HtmlDivider |
31 | 31 | */ |
32 | - public function setHorizontal(){ |
|
33 | - return $this->addToPropertyUnique("class", "horizontal", array("vertical","horizontal")); |
|
32 | + public function setHorizontal() { |
|
33 | + return $this->addToPropertyUnique("class", "horizontal", array("vertical", "horizontal")); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * hide the divider |
38 | 38 | * @return \Ajax\semantic\html\elements\HtmlDivider |
39 | 39 | */ |
40 | - public function setHidden(){ |
|
40 | + public function setHidden() { |
|
41 | 41 | return $this->addToProperty("class", "hidden"); |
42 | 42 | } |
43 | 43 | |
@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | * fitted, without any space above or below it |
46 | 46 | * @return \Ajax\semantic\html\elements\HtmlDivider |
47 | 47 | */ |
48 | - public function setFitted(){ |
|
48 | + public function setFitted() { |
|
49 | 49 | return $this->addToProperty("class", "fitted"); |
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @return \Ajax\semantic\html\elements\HtmlDivider |
54 | 54 | */ |
55 | - public function asHeader(){ |
|
55 | + public function asHeader() { |
|
56 | 56 | return $this->addToProperty("class", "header"); |
57 | 57 | } |
58 | 58 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * inverts the divider colors |
61 | 61 | * @return \Ajax\semantic\html\elements\HtmlDivider |
62 | 62 | */ |
63 | - public function setInverted(){ |
|
63 | + public function setInverted() { |
|
64 | 64 | return $this->addToProperty("class", "inverted"); |
65 | 65 | } |
66 | 66 | } |
67 | 67 | \ No newline at end of file |