@@ -6,31 +6,31 @@ discard block |
||
6 | 6 | use Ajax\semantic\html\content\HtmlAccordionItem; |
7 | 7 | use Ajax\JsUtils; |
8 | 8 | |
9 | -class HtmlAccordion extends HtmlSemCollection{ |
|
9 | +class HtmlAccordion extends HtmlSemCollection { |
|
10 | 10 | |
11 | 11 | protected $params=array(); |
12 | 12 | |
13 | - public function __construct( $identifier, $tagName="div", $baseClass="ui"){ |
|
14 | - parent::__construct( $identifier, "div", "ui accordion"); |
|
13 | + public function __construct($identifier, $tagName="div", $baseClass="ui") { |
|
14 | + parent::__construct($identifier, "div", "ui accordion"); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | |
18 | - protected function createItem($value){ |
|
18 | + protected function createItem($value) { |
|
19 | 19 | $count=$this->count(); |
20 | 20 | $title=$value; |
21 | 21 | $content=NULL; |
22 | - if(\is_array($value)){ |
|
23 | - $title=@$value[0];$content=@$value[1]; |
|
22 | + if (\is_array($value)) { |
|
23 | + $title=@$value[0]; $content=@$value[1]; |
|
24 | 24 | } |
25 | - return new HtmlAccordionItem("item-".$this->identifier."-".$count, $title,$content); |
|
25 | + return new HtmlAccordionItem("item-".$this->identifier."-".$count, $title, $content); |
|
26 | 26 | } |
27 | 27 | |
28 | - protected function createCondition($value){ |
|
28 | + protected function createCondition($value) { |
|
29 | 29 | return ($value instanceof HtmlAccordionItem)===false; |
30 | 30 | } |
31 | 31 | |
32 | - public function addPanel($title,$content){ |
|
33 | - return $this->addItem([$title,$content]); |
|
32 | + public function addPanel($title, $content) { |
|
33 | + return $this->addItem([$title, $content]); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | * @param string $action a Phalcon action |
43 | 43 | * @param array $params |
44 | 44 | */ |
45 | - public function forwardPanel(JsUtils $js,$title,$initialController,$controller,$action,$params=array()){ |
|
46 | - return $this->addPanel($title, $js->forward($initialController, $controller, $action,$params)); |
|
45 | + public function forwardPanel(JsUtils $js, $title, $initialController, $controller, $action, $params=array()) { |
|
46 | + return $this->addPanel($title, $js->forward($initialController, $controller, $action, $params)); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -54,30 +54,30 @@ discard block |
||
54 | 54 | * @param string $viewName |
55 | 55 | * @param $params The parameters to pass to the view |
56 | 56 | */ |
57 | - public function renderViewPanel(JsUtils $js,$title,$initialController, $viewName, $params=array()) { |
|
58 | - return $this->addPanel($title, $js->renderContent($initialController, $viewName,$params)); |
|
57 | + public function renderViewPanel(JsUtils $js, $title, $initialController, $viewName, $params=array()) { |
|
58 | + return $this->addPanel($title, $js->renderContent($initialController, $viewName, $params)); |
|
59 | 59 | } |
60 | 60 | /* |
61 | 61 | * (non-PHPdoc) |
62 | 62 | * @see BaseHtml::run() |
63 | 63 | */ |
64 | 64 | public function run(JsUtils $js) { |
65 | - if(isset($this->_bsComponent)===false) |
|
66 | - $this->_bsComponent=$js->semantic()->accordion("#".$this->identifier,$this->params); |
|
65 | + if (isset($this->_bsComponent)===false) |
|
66 | + $this->_bsComponent=$js->semantic()->accordion("#".$this->identifier, $this->params); |
|
67 | 67 | $this->addEventsOnRun($js); |
68 | 68 | return $this->_bsComponent; |
69 | 69 | } |
70 | 70 | |
71 | - public function setStyled(){ |
|
71 | + public function setStyled() { |
|
72 | 72 | return $this->addToProperty("class", "styled"); |
73 | 73 | } |
74 | 74 | |
75 | - public function setActive($index){ |
|
75 | + public function setActive($index) { |
|
76 | 76 | $this->getItem($index)->setActive(true); |
77 | 77 | return $this; |
78 | 78 | } |
79 | 79 | |
80 | - public function setExclusive($value){ |
|
80 | + public function setExclusive($value) { |
|
81 | 81 | $this->params["exclusive"]=$value; |
82 | 82 | } |
83 | 83 | } |
84 | 84 | \ No newline at end of file |
@@ -6,20 +6,20 @@ discard block |
||
6 | 6 | use Ajax\semantic\html\base\HtmlSemCollection; |
7 | 7 | use Ajax\semantic\html\base\constants\Sens; |
8 | 8 | |
9 | -class HtmlSegmentGroups extends HtmlSemCollection{ |
|
9 | +class HtmlSegmentGroups extends HtmlSemCollection { |
|
10 | 10 | |
11 | 11 | |
12 | - public function __construct( $identifier, $items=array()){ |
|
13 | - parent::__construct( $identifier, "div","ui segments"); |
|
12 | + public function __construct($identifier, $items=array()) { |
|
13 | + parent::__construct($identifier, "div", "ui segments"); |
|
14 | 14 | $this->addItems($items); |
15 | 15 | } |
16 | 16 | |
17 | 17 | |
18 | - protected function createItem($value){ |
|
19 | - return new HtmlSegment("segment-".$this->count(),$value); |
|
18 | + protected function createItem($value) { |
|
19 | + return new HtmlSegment("segment-".$this->count(), $value); |
|
20 | 20 | } |
21 | 21 | |
22 | - protected function createCondition($value){ |
|
22 | + protected function createCondition($value) { |
|
23 | 23 | return !($value instanceof HtmlSegment); |
24 | 24 | } |
25 | 25 | |
@@ -28,16 +28,16 @@ discard block |
||
28 | 28 | * @param string $type one of "raised","stacked","piled" default : "" |
29 | 29 | * @return \Ajax\semantic\html\elements\HtmlSegmentGroups |
30 | 30 | */ |
31 | - public function setType($type){ |
|
31 | + public function setType($type) { |
|
32 | 32 | return $this->addToPropertyCtrl("class", $type, SegmentType::getConstants()); |
33 | 33 | } |
34 | 34 | |
35 | - public function setSens($sens=Sens::VERTICAL){ |
|
35 | + public function setSens($sens=Sens::VERTICAL) { |
|
36 | 36 | return $this->addToPropertyCtrl("class", $sens, Sens::getConstants()); |
37 | 37 | } |
38 | 38 | |
39 | - public static function group($identifier,$items=array(),$type="",$sens=Sens::VERTICAL){ |
|
40 | - $group=new HtmlSegmentGroups($identifier,$items); |
|
39 | + public static function group($identifier, $items=array(), $type="", $sens=Sens::VERTICAL) { |
|
40 | + $group=new HtmlSegmentGroups($identifier, $items); |
|
41 | 41 | $group->setSens($sens); |
42 | 42 | return $group->setType($type); |
43 | 43 | } |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | use IconTrait; |
14 | 14 | |
15 | 15 | public function __construct($identifier, $type="text", $value="", $placeholder="") { |
16 | - parent::__construct("div-" . $identifier, "div", "ui input"); |
|
17 | - $this->content=[ "field" => new \Ajax\common\html\html5\HtmlInput($identifier, $type, $value, $placeholder) ]; |
|
18 | - $this->_states=[ State::DISABLED,State::FOCUS,State::ERROR ]; |
|
19 | - $this->_variations=[ Variation::TRANSPARENT ]; |
|
16 | + parent::__construct("div-".$identifier, "div", "ui input"); |
|
17 | + $this->content=["field" => new \Ajax\common\html\html5\HtmlInput($identifier, $type, $value, $placeholder)]; |
|
18 | + $this->_states=[State::DISABLED, State::FOCUS, State::ERROR]; |
|
19 | + $this->_variations=[Variation::TRANSPARENT]; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function setFocus() { |
@@ -24,38 +24,38 @@ discard block |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | public function addLoading() { |
27 | - if ($this->_hasIcon === false) { |
|
27 | + if ($this->_hasIcon===false) { |
|
28 | 28 | throw new \Exception("Input must have an icon for showing a loader, use addIcon before"); |
29 | 29 | } |
30 | 30 | return $this->addToProperty("class", State::LOADING); |
31 | 31 | } |
32 | 32 | |
33 | 33 | public function labeled($label, $direction=Direction::LEFT, $icon=NULL) { |
34 | - $labelO=$this->addLabel($label,$direction===Direction::LEFT,$icon); |
|
35 | - $this->addToProperty("class", $direction . " labeled"); |
|
34 | + $labelO=$this->addLabel($label, $direction===Direction::LEFT, $icon); |
|
35 | + $this->addToProperty("class", $direction." labeled"); |
|
36 | 36 | return $labelO; |
37 | 37 | } |
38 | 38 | |
39 | 39 | public function labeledToCorner($icon, $direction=Direction::LEFT) { |
40 | - return $this->labeled("", $direction . " corner", $icon)->toCorner($direction); |
|
40 | + return $this->labeled("", $direction." corner", $icon)->toCorner($direction); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function addAction($action, $direction=Direction::RIGHT, $icon=NULL, $labeled=false) { |
44 | 44 | $actionO=$action; |
45 | - if (\is_object($action) === false) { |
|
46 | - $actionO=new HtmlButton("action-" . $this->identifier, $action); |
|
45 | + if (\is_object($action)===false) { |
|
46 | + $actionO=new HtmlButton("action-".$this->identifier, $action); |
|
47 | 47 | if (isset($icon)) |
48 | 48 | $actionO->addIcon($icon, true, $labeled); |
49 | 49 | } |
50 | - $this->addToProperty("class", $direction . " action"); |
|
51 | - $this->addContent($actionO, \strstr($direction, Direction::LEFT) !== false); |
|
50 | + $this->addToProperty("class", $direction." action"); |
|
51 | + $this->addContent($actionO, \strstr($direction, Direction::LEFT)!==false); |
|
52 | 52 | return $actionO; |
53 | 53 | } |
54 | 54 | |
55 | - public function addDropdown($label="", $items=array(),$direction=Direction::RIGHT){ |
|
56 | - $labelO=new HtmlDropdown("dd-".$this->identifier,$label,$items); |
|
57 | - $labelO->asSelect("select-".$this->identifier,false,true); |
|
58 | - return $this->labeled($labelO,$direction); |
|
55 | + public function addDropdown($label="", $items=array(), $direction=Direction::RIGHT) { |
|
56 | + $labelO=new HtmlDropdown("dd-".$this->identifier, $label, $items); |
|
57 | + $labelO->asSelect("select-".$this->identifier, false, true); |
|
58 | + return $this->labeled($labelO, $direction); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | public function getField() { |
@@ -18,12 +18,12 @@ discard block |
||
18 | 18 | * @version 1.001 |
19 | 19 | */ |
20 | 20 | class HtmlSegment extends HtmlSemDoubleElement { |
21 | - use AttachedTrait,TextAlignmentTrait; |
|
21 | + use AttachedTrait, TextAlignmentTrait; |
|
22 | 22 | |
23 | 23 | public function __construct($identifier, $content="") { |
24 | 24 | parent::__construct($identifier, "div", "ui segment"); |
25 | - $this->_variations=\array_merge($this->_variations, [ Variation::PADDED,Variation::COMPACT ]); |
|
26 | - $this->_states=\array_merge($this->_states, [ State::LOADING ]); |
|
25 | + $this->_variations=\array_merge($this->_variations, [Variation::PADDED, Variation::COMPACT]); |
|
26 | + $this->_states=\array_merge($this->_states, [State::LOADING]); |
|
27 | 27 | $this->content=$content; |
28 | 28 | } |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | public function setSens($sens="vertical") { |
40 | - return $this->addToPropertyCtrl("class", $sens, array ("vertical","horizontal" )); |
|
40 | + return $this->addToPropertyCtrl("class", $sens, array("vertical", "horizontal")); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function setEmphasis($value=Emphasis::SECONDARY) { |
@@ -61,11 +61,11 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | public function asContainer() { |
64 | - return $this->addToPropertyCtrl("class", "container", array ("container" )); |
|
64 | + return $this->addToPropertyCtrl("class", "container", array("container")); |
|
65 | 65 | } |
66 | 66 | |
67 | - public function addGrid($numRows=1, $numCols=NULL){ |
|
68 | - $grid=new HtmlGrid("Grid-".$this->identifier,$numRows,$numCols); |
|
67 | + public function addGrid($numRows=1, $numCols=NULL) { |
|
68 | + $grid=new HtmlGrid("Grid-".$this->identifier, $numRows, $numCols); |
|
69 | 69 | $this->content=$grid; |
70 | 70 | return $grid; |
71 | 71 | } |
@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | */ |
16 | 16 | class HtmlLabelGroups extends HtmlSemCollection { |
17 | 17 | |
18 | - public function __construct($identifier,$labels=array(), $attributes=array()) { |
|
18 | + public function __construct($identifier, $labels=array(), $attributes=array()) { |
|
19 | 19 | parent::__construct($identifier, "div", "ui labels"); |
20 | - $this->_states=\array_merge(Size::getConstants(),Color::getConstants(),["tag","circular"]); |
|
20 | + $this->_states=\array_merge(Size::getConstants(), Color::getConstants(), ["tag", "circular"]); |
|
21 | 21 | $this->addItems($labels); |
22 | 22 | $this->setStates($attributes); |
23 | 23 | } |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | $icon=JArray::getValue($value, "icon", 1); |
32 | 32 | $tagName=JArray::getValue($value, "tagName", 2); |
33 | 33 | } |
34 | - $labelO=new HtmlLabel("label-" . $this->identifier, $caption,$icon,$tagName); |
|
34 | + $labelO=new HtmlLabel("label-".$this->identifier, $caption, $icon, $tagName); |
|
35 | 35 | return $labelO; |
36 | 36 | } |
37 | 37 | |
38 | 38 | protected function createCondition($value) { |
39 | - return ($value instanceof HtmlLabel) === false; |
|
39 | + return ($value instanceof HtmlLabel)===false; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | } |
43 | 43 | \ No newline at end of file |
@@ -21,13 +21,13 @@ |
||
21 | 21 | * @see \Ajax\bootstrap\html\base\HtmlSingleElement::run() |
22 | 22 | */ |
23 | 23 | public function run(JsUtils $js) { |
24 | - $this->_bsComponent=$js->semantic()->generic("#" . $this->identifier); |
|
24 | + $this->_bsComponent=$js->semantic()->generic("#".$this->identifier); |
|
25 | 25 | $this->addEventsOnRun($js); |
26 | 26 | return $this->_bsComponent; |
27 | 27 | } |
28 | 28 | |
29 | 29 | public function addIcon($icon, $before=true) { |
30 | - return $this->addContent(new HtmlIcon("icon-" . $this->identifier, $icon), $before); |
|
30 | + return $this->addContent(new HtmlIcon("icon-".$this->identifier, $icon), $before); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | public static function icon($identifier, $icon, $href="#", $label=NULL) { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | public function setFocusable($value=true) { |
58 | - if ($value === true) |
|
58 | + if ($value===true) |
|
59 | 59 | $this->setProperty("tabindex", "0"); |
60 | 60 | else { |
61 | 61 | $this->removeProperty("tabindex"); |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | |
66 | 66 | public function setAnimated($content, $animation="") { |
67 | 67 | $this->setTagName("div"); |
68 | - $this->addToProperty("class", "animated " . $animation); |
|
69 | - $visible=new HtmlSemDoubleElement("visible-" . $this->identifier, "div"); |
|
68 | + $this->addToProperty("class", "animated ".$animation); |
|
69 | + $visible=new HtmlSemDoubleElement("visible-".$this->identifier, "div"); |
|
70 | 70 | $visible->setClass("visible content"); |
71 | 71 | $visible->setContent($this->content); |
72 | - $hidden=new HtmlSemDoubleElement("hidden-" . $this->identifier, "div"); |
|
72 | + $hidden=new HtmlSemDoubleElement("hidden-".$this->identifier, "div"); |
|
73 | 73 | $hidden->setClass("hidden content"); |
74 | 74 | $hidden->setContent($content); |
75 | - $this->content=array ($visible,$hidden ); |
|
75 | + $this->content=array($visible, $hidden); |
|
76 | 76 | return $hidden; |
77 | 77 | } |
78 | 78 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function asIcon($icon) { |
85 | 85 | $iconO=$icon; |
86 | 86 | if (\is_string($icon)) { |
87 | - $iconO=new HtmlIcon("icon-" . $this->identifier, $icon); |
|
87 | + $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
|
88 | 88 | } |
89 | 89 | $this->addToProperty("class", "icon"); |
90 | 90 | $this->content=$iconO; |
@@ -106,10 +106,10 @@ discard block |
||
106 | 106 | public function addLabel($label, $before=false, $icon=NULL) { |
107 | 107 | $this->tagName="div"; |
108 | 108 | $this->addToProperty("class", "labeled"); |
109 | - $this->content=new HtmlButton("button-" . $this->identifier, $this->content); |
|
109 | + $this->content=new HtmlButton("button-".$this->identifier, $this->content); |
|
110 | 110 | $this->content->setTagName("div"); |
111 | - $label=new HtmlLabel("label-" . $this->identifier, $label, "a"); |
|
112 | - if(isset($icon)) |
|
111 | + $label=new HtmlLabel("label-".$this->identifier, $label, "a"); |
|
112 | + if (isset($icon)) |
|
113 | 113 | $label->addIcon($icon); |
114 | 114 | $label->setBasic(); |
115 | 115 | $this->addContent($label, $before); |
@@ -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; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | public static function social($identifier, $social, $value=NULL) { |
188 | - if ($value === NULL) |
|
188 | + if ($value===NULL) |
|
189 | 189 | $value=\ucfirst($social); |
190 | 190 | $return=new HtmlButton($identifier, $value); |
191 | 191 | $return->addIcon($social); |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | public function asLink($href=NULL) { |
208 | - $lnk=new HtmlLink("lnk-".$this->identifier,$href,$this->content); |
|
208 | + $lnk=new HtmlLink("lnk-".$this->identifier, $href, $this->content); |
|
209 | 209 | $this->content=$lnk; |
210 | 210 | return $this; |
211 | 211 | } |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | * @return \Ajax\semantic\html\elements\HtmlLabel |
25 | 25 | */ |
26 | 26 | public function setPointing($value=Direction::NONE) { |
27 | - if($value==="left" || $value==="right") |
|
27 | + if ($value==="left" || $value==="right") |
|
28 | 28 | return $this->addToPropertyCtrl("class", $value." pointing", Direction::getConstantValues("pointing")); |
29 | 29 | else |
30 | - return $this->addToPropertyCtrl("class", "pointing ".$value, Direction::getConstantValues("pointing",true)); |
|
30 | + return $this->addToPropertyCtrl("class", "pointing ".$value, Direction::getConstantValues("pointing", true)); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -36,15 +36,15 @@ discard block |
||
36 | 36 | * @return \Ajax\semantic\html\elements\HtmlLabel |
37 | 37 | */ |
38 | 38 | public function toCorner($side="left") { |
39 | - return $this->addToPropertyCtrl("class", $side . " corner", array ("right corner","left corner" )); |
|
39 | + return $this->addToPropertyCtrl("class", $side." corner", array("right corner", "left corner")); |
|
40 | 40 | } |
41 | 41 | |
42 | - public function setHorizontal(){ |
|
43 | - return $this->addToPropertyCtrl("class", "hozizontal",array("horizontal")); |
|
42 | + public function setHorizontal() { |
|
43 | + return $this->addToPropertyCtrl("class", "hozizontal", array("horizontal")); |
|
44 | 44 | } |
45 | 45 | |
46 | - public function setFloating(){ |
|
47 | - return $this->addToPropertyCtrl("class", "floating",array("floating")); |
|
46 | + public function setFloating() { |
|
47 | + return $this->addToPropertyCtrl("class", "floating", array("floating")); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | return $this->addToProperty("class", "tag"); |
56 | 56 | } |
57 | 57 | |
58 | - public function setEmpty(){ |
|
58 | + public function setEmpty() { |
|
59 | 59 | $this->content=NULL; |
60 | - return $this->addToPropertyCtrl("class", "empty",array("empty")); |
|
60 | + return $this->addToPropertyCtrl("class", "empty", array("empty")); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | public function setBasic() { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function addEmphasisImage($src, $alt="", $before=true) { |
75 | 75 | $this->addToProperty("class", "image"); |
76 | - return $this->addImage($src,$alt,$before); |
|
76 | + return $this->addImage($src, $alt, $before); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @return \Ajax\semantic\html\elements\html5\HtmlImg |
85 | 85 | */ |
86 | 86 | public function addAvatarImage($src, $alt="", $before=true) { |
87 | - $img=$this->addImage($src,$alt,$before); |
|
87 | + $img=$this->addImage($src, $alt, $before); |
|
88 | 88 | $img->setClass("ui image"); |
89 | 89 | $img->asAvatar(); |
90 | 90 | return $img; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @return \Ajax\semantic\html\elements\html5\HtmlImg |
99 | 99 | */ |
100 | 100 | public function addImage($src, $alt="", $before=true) { |
101 | - $img=new HtmlImg("image-" . $this->identifier, $src, $alt); |
|
101 | + $img=new HtmlImg("image-".$this->identifier, $src, $alt); |
|
102 | 102 | $img->setClass(""); |
103 | 103 | $this->addContent($img, $before); |
104 | 104 | return $img; |
@@ -110,21 +110,21 @@ discard block |
||
110 | 110 | * @return \Ajax\common\html\HtmlDoubleElement |
111 | 111 | */ |
112 | 112 | public function addDetail($detail) { |
113 | - $div=new HtmlSemDoubleElement("detail-" . $this->identifier, $this->tagName,"detail"); |
|
113 | + $div=new HtmlSemDoubleElement("detail-".$this->identifier, $this->tagName, "detail"); |
|
114 | 114 | $div->setContent($detail); |
115 | 115 | $this->addContent($div); |
116 | 116 | return $div; |
117 | 117 | } |
118 | 118 | |
119 | 119 | public function asRibbon($direction=Direction::NONE) { |
120 | - return $this->addToPropertyCtrl("class", $direction." ribbon", array ("ribbon","right ribbon","left ribbon" )); |
|
120 | + return $this->addToPropertyCtrl("class", $direction." ribbon", array("ribbon", "right ribbon", "left ribbon")); |
|
121 | 121 | } |
122 | 122 | |
123 | - public function setAttached($side=Side::TOP,$direction=Direction::NONE){ |
|
124 | - if($direction!==Direction::NONE) |
|
125 | - return $this->addToPropertyCtrl("class", $side." ".$direction." attached",Side::getConstantValues($direction." attached")); |
|
123 | + public function setAttached($side=Side::TOP, $direction=Direction::NONE) { |
|
124 | + if ($direction!==Direction::NONE) |
|
125 | + return $this->addToPropertyCtrl("class", $side." ".$direction." attached", Side::getConstantValues($direction." attached")); |
|
126 | 126 | else |
127 | - return $this->addToPropertyCtrl("class", $side." attached",Side::getConstantValues("attached")); |
|
127 | + return $this->addToPropertyCtrl("class", $side." attached", Side::getConstantValues("attached")); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | public static function ribbon($identifier, $caption) { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @return \Ajax\semantic\html\elements\HtmlDivider |
23 | 23 | */ |
24 | 24 | public function setVertical() { |
25 | - return $this->addToPropertyCtrl("class", "vertical", array ("vertical","horizontal" )); |
|
25 | + return $this->addToPropertyCtrl("class", "vertical", array("vertical", "horizontal")); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @return \Ajax\semantic\html\elements\HtmlDivider |
31 | 31 | */ |
32 | 32 | public function setHorizontal() { |
33 | - return $this->addToPropertyCtrl("class", "horizontal", array ("vertical","horizontal" )); |
|
33 | + return $this->addToPropertyCtrl("class", "horizontal", array("vertical", "horizontal")); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |