@@ -20,6 +20,9 @@ |
||
| 20 | 20 | protected $_tabsType="tabs"; |
| 21 | 21 | protected $stacked=""; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($identifier, $tagName="ul") { |
| 24 | 27 | parent::__construct($identifier, $tagName); |
| 25 | 28 | $this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%"; |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function __construct($identifier, $items=array()) { |
| 16 | 16 | parent::__construct($identifier, "div"); |
| 17 | 17 | $this->setClass("ui menu"); |
| 18 | - foreach ($items as $item){ |
|
| 18 | + foreach ($items as $item) { |
|
| 19 | 19 | $this->addItem($item); |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | * @param string $type one of text,item |
| 26 | 26 | * @return \Ajax\semantic\html\collections\HtmlMenu |
| 27 | 27 | */ |
| 28 | - public function setType($type=""){ |
|
| 29 | - return $this->addToPropertyCtrl("class", $type, array("","item","text")); |
|
| 28 | + public function setType($type="") { |
|
| 29 | + return $this->addToPropertyCtrl("class", $type, array("", "item", "text")); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public function setActiveItem($index){ |
|
| 32 | + public function setActiveItem($index) { |
|
| 33 | 33 | $item=$this->getItem($index); |
| 34 | - if($item!==null){ |
|
| 34 | + if ($item!==null) { |
|
| 35 | 35 | $item->addToProperty("class", "active"); |
| 36 | 36 | } |
| 37 | 37 | return $this; |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * {@inheritDoc} |
| 42 | 42 | * @see \Ajax\common\html\html5\HtmlCollection::addItem() |
| 43 | 43 | */ |
| 44 | - public function addItem($item){ |
|
| 44 | + public function addItem($item) { |
|
| 45 | 45 | $item=parent::addItem($item); |
| 46 | 46 | $item->addToProperty("class", "item"); |
| 47 | 47 | } |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | * @see \Ajax\common\html\html5\HtmlCollection::createItem() |
| 51 | 51 | */ |
| 52 | 52 | protected function createItem($value) { |
| 53 | - $itemO=new HtmlLink("item-".\sizeof($this->content),"",$value); |
|
| 53 | + $itemO=new HtmlLink("item-".\sizeof($this->content), "", $value); |
|
| 54 | 54 | return $itemO->setClass("item"); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - public function setInverted(){ |
|
| 57 | + public function setInverted() { |
|
| 58 | 58 | return $this->addToProperty("class", "inverted"); |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | \ No newline at end of file |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * @param string $identifier |
| 59 | 59 | * @param string $icon |
| 60 | 60 | */ |
| 61 | - public function htmlIcon($identifier,$icon){ |
|
| 61 | + public function htmlIcon($identifier, $icon) { |
|
| 62 | 62 | return $this->addHtmlComponent(new HtmlIcon($identifier, $icon)); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -67,14 +67,14 @@ discard block |
||
| 67 | 67 | * @param string $size |
| 68 | 68 | * @param array $icons |
| 69 | 69 | */ |
| 70 | - public function htmlIconGroups($identifier,$size="",$icons=array()){ |
|
| 71 | - $group=new HtmlIconGroups($identifier,$size); |
|
| 72 | - if(JArray::isAssociative($icons)){ |
|
| 73 | - foreach ($icons as $icon=>$size){ |
|
| 74 | - $group->add($icon,$size); |
|
| 70 | + public function htmlIconGroups($identifier, $size="", $icons=array()) { |
|
| 71 | + $group=new HtmlIconGroups($identifier, $size); |
|
| 72 | + if (JArray::isAssociative($icons)) { |
|
| 73 | + foreach ($icons as $icon=>$size) { |
|
| 74 | + $group->add($icon, $size); |
|
| 75 | 75 | } |
| 76 | - }else{ |
|
| 77 | - foreach ($icons as $icon){ |
|
| 76 | + }else { |
|
| 77 | + foreach ($icons as $icon) { |
|
| 78 | 78 | $group->add($icon); |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -86,8 +86,8 @@ discard block |
||
| 86 | 86 | * @param array $elements |
| 87 | 87 | * @param boolean $asIcons |
| 88 | 88 | */ |
| 89 | - public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){ |
|
| 90 | - return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements,$asIcons)); |
|
| 89 | + public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) { |
|
| 90 | + return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons)); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @param string $identifier |
| 96 | 96 | * @param string $content |
| 97 | 97 | */ |
| 98 | - public function htmlContainer($identifier,$content=""){ |
|
| 98 | + public function htmlContainer($identifier, $content="") { |
|
| 99 | 99 | return $this->addHtmlComponent(new HtmlContainer($identifier, $content)); |
| 100 | 100 | } |
| 101 | 101 | |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | * @param string $identifier |
| 104 | 104 | * @param string $content |
| 105 | 105 | */ |
| 106 | - public function htmlDivider($identifier,$content="",$tagName="div"){ |
|
| 107 | - return $this->addHtmlComponent(new HtmlDivider($identifier, $content,$tagName)); |
|
| 106 | + public function htmlDivider($identifier, $content="", $tagName="div") { |
|
| 107 | + return $this->addHtmlComponent(new HtmlDivider($identifier, $content, $tagName)); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -112,16 +112,16 @@ discard block |
||
| 112 | 112 | * @param string $content |
| 113 | 113 | * @param string $tagName |
| 114 | 114 | */ |
| 115 | - public function htmlLabel($identifier,$content="",$tagName="div"){ |
|
| 116 | - return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$tagName)); |
|
| 115 | + public function htmlLabel($identifier, $content="", $tagName="div") { |
|
| 116 | + return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $tagName)); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * @param string $identifier |
| 121 | 121 | * @param array $items |
| 122 | 122 | */ |
| 123 | - public function htmlMenu($identifier,$items=array()){ |
|
| 124 | - return $this->addHtmlComponent(new HtmlMenu($identifier,$items)); |
|
| 123 | + public function htmlMenu($identifier, $items=array()) { |
|
| 124 | + return $this->addHtmlComponent(new HtmlMenu($identifier, $items)); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -129,8 +129,8 @@ discard block |
||
| 129 | 129 | * @param string $value |
| 130 | 130 | * @param array $items |
| 131 | 131 | */ |
| 132 | - public function htmlDropdown($identifier, $value="", $items=array()){ |
|
| 133 | - return $this->addHtmlComponent(new HtmlDropdown($identifier,$value,$items)); |
|
| 132 | + public function htmlDropdown($identifier, $value="", $items=array()) { |
|
| 133 | + return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items)); |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | * @param string $identifier |
| 139 | 139 | * @param string $content |
| 140 | 140 | */ |
| 141 | - public function htmlMessage($identifier, $content=""){ |
|
| 142 | - return $this->addHtmlComponent(new HtmlMessage($identifier,$content)); |
|
| 141 | + public function htmlMessage($identifier, $content="") { |
|
| 142 | + return $this->addHtmlComponent(new HtmlMessage($identifier, $content)); |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
@@ -147,8 +147,8 @@ discard block |
||
| 147 | 147 | * @param string $identifier |
| 148 | 148 | * @param string $content |
| 149 | 149 | */ |
| 150 | - public function htmlSegment($identifier, $content=""){ |
|
| 151 | - return $this->addHtmlComponent(new HtmlSegment($identifier,$content)); |
|
| 150 | + public function htmlSegment($identifier, $content="") { |
|
| 151 | + return $this->addHtmlComponent(new HtmlSegment($identifier, $content)); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
@@ -156,15 +156,15 @@ discard block |
||
| 156 | 156 | * @param string $identifier |
| 157 | 157 | * @param array $items the segments |
| 158 | 158 | */ |
| 159 | - public function htmlSegmentGroups($identifier, $items=array()){ |
|
| 160 | - return $this->addHtmlComponent(new HtmlSegmentGroups($identifier,$items)); |
|
| 159 | + public function htmlSegmentGroups($identifier, $items=array()) { |
|
| 160 | + return $this->addHtmlComponent(new HtmlSegmentGroups($identifier, $items)); |
|
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * @param string $identifier |
| 165 | 165 | * @param mixed $content |
| 166 | 166 | */ |
| 167 | - public function htmlPopup(BaseHtml $container,$identifier,$content){ |
|
| 168 | - return $this->addHtmlComponent(new HtmlPopup($container,$identifier,$content)); |
|
| 167 | + public function htmlPopup(BaseHtml $container, $identifier, $content) { |
|
| 168 | + return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content)); |
|
| 169 | 169 | } |
| 170 | 170 | } |
| 171 | 171 | \ No newline at end of file |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * {@inheritDoc} |
| 21 | 21 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
| 22 | 22 | */ |
| 23 | - public function setSize($size){ |
|
| 23 | + public function setSize($size) { |
|
| 24 | 24 | return $this->addToPropertyCtrl("class", $size, Size::getConstants()); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * show it is currently unable to be interacted with |
| 29 | 29 | * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement |
| 30 | 30 | */ |
| 31 | - public function setDisabled(){ |
|
| 31 | + public function setDisabled() { |
|
| 32 | 32 | return $this->addToProperty("class", "disabled"); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -36,35 +36,35 @@ discard block |
||
| 36 | 36 | * @param string $color |
| 37 | 37 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
| 38 | 38 | */ |
| 39 | - public function setColor($color){ |
|
| 40 | - return $this->addToPropertyCtrl("class", $color,Color::getConstants()); |
|
| 39 | + public function setColor($color) { |
|
| 40 | + return $this->addToPropertyCtrl("class", $color, Color::getConstants()); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - public function setPopupAttributes($variation=NULL,$popupEvent=NULL){ |
|
| 44 | - if(isset($this->_popup)) |
|
| 45 | - $this->_popup->setAttributes($variation,$popupEvent); |
|
| 43 | + public function setPopupAttributes($variation=NULL, $popupEvent=NULL) { |
|
| 44 | + if (isset($this->_popup)) |
|
| 45 | + $this->_popup->setAttributes($variation, $popupEvent); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - public function addPopup($title="",$content="",$variation=NULL,$params=array()){ |
|
| 49 | - $this->_popup=new InternalPopup($this,$title,$content,$variation,$params); |
|
| 48 | + public function addPopup($title="", $content="", $variation=NULL, $params=array()) { |
|
| 49 | + $this->_popup=new InternalPopup($this, $title, $content, $variation, $params); |
|
| 50 | 50 | return $this; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - public function addPopupHtml($html="",$variation=NULL,$params=array()){ |
|
| 53 | + public function addPopupHtml($html="", $variation=NULL, $params=array()) { |
|
| 54 | 54 | $this->_popup=new InternalPopup($this); |
| 55 | 55 | $this->_popup->setHtml($html); |
| 56 | - $this->_popup->setAttributes($variation,$params); |
|
| 56 | + $this->_popup->setAttributes($variation, $params); |
|
| 57 | 57 | return $this; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - public function setFluid(){ |
|
| 60 | + public function setFluid() { |
|
| 61 | 61 | $this->addToProperty("class", "fluid"); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * can be formatted to appear on dark backgrounds |
| 66 | 66 | */ |
| 67 | - public function setInverted(){ |
|
| 67 | + public function setInverted() { |
|
| 68 | 68 | $this->addToProperty("class", "inverted"); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -75,16 +75,16 @@ discard block |
||
| 75 | 75 | * @param boolean $labeled |
| 76 | 76 | * @return \Ajax\semantic\html\elements\HtmlIcon |
| 77 | 77 | */ |
| 78 | - public function addIcon($icon,$before=true,$labeled=false){ |
|
| 78 | + public function addIcon($icon, $before=true, $labeled=false) { |
|
| 79 | 79 | $iconO=$icon; |
| 80 | - if(\is_string($icon)){ |
|
| 80 | + if (\is_string($icon)) { |
|
| 81 | 81 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
| 82 | 82 | } |
| 83 | - if($labeled!==false){ |
|
| 83 | + if ($labeled!==false) { |
|
| 84 | 84 | $this->addToProperty("class", "labeled icon"); |
| 85 | 85 | $this->tagName="div"; |
| 86 | 86 | } |
| 87 | - $this->addContent($iconO,$before); |
|
| 87 | + $this->addContent($iconO, $before); |
|
| 88 | 88 | return $iconO; |
| 89 | 89 | } |
| 90 | 90 | |
@@ -92,18 +92,18 @@ discard block |
||
| 92 | 92 | * show a loading indicator |
| 93 | 93 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
| 94 | 94 | */ |
| 95 | - public function asLoader(){ |
|
| 95 | + public function asLoader() { |
|
| 96 | 96 | return $this->addToProperty("class", "loading"); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - public function compile(JsUtils $js=NULL, View $view=NULL){ |
|
| 100 | - if(isset($this->_popup)) |
|
| 99 | + public function compile(JsUtils $js=NULL, View $view=NULL) { |
|
| 100 | + if (isset($this->_popup)) |
|
| 101 | 101 | $this->_popup->compile(); |
| 102 | - return parent::compile($js,$view); |
|
| 102 | + return parent::compile($js, $view); |
|
| 103 | 103 | } |
| 104 | - public function run(JsUtils $js){ |
|
| 104 | + public function run(JsUtils $js) { |
|
| 105 | 105 | parent::run($js); |
| 106 | - if(isset($this->_popup)){ |
|
| 106 | + if (isset($this->_popup)) { |
|
| 107 | 107 | $this->_popup->run($js); |
| 108 | 108 | //$this->addEventsOnRun($js); |
| 109 | 109 | //return $this->_bsComponent; |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | class HtmlPopup extends HtmlSemDoubleElement { |
| 11 | 11 | private $params; |
| 12 | 12 | private $_container; |
| 13 | - public function __construct(BaseHtml $container,$identifier, $content="") { |
|
| 13 | + public function __construct(BaseHtml $container, $identifier, $content="") { |
|
| 14 | 14 | parent::__construct($identifier, "div"); |
| 15 | 15 | $this->_container=$container; |
| 16 | 16 | $this->setClass("ui popup"); |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $this->params=array("on"=>"click"); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - public function setFlowing(){ |
|
| 21 | + public function setFlowing() { |
|
| 22 | 22 | $this->addToProperty("class", "flowing"); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | * {@inheritDoc} |
| 27 | 27 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::run() |
| 28 | 28 | */ |
| 29 | - public function run(JsUtils $js){ |
|
| 29 | + public function run(JsUtils $js) { |
|
| 30 | 30 | $this->params["popup"]="#".$this->identifier; |
| 31 | - $js->semantic()->popup("#".$this->_container->getIdentifier(),$this->params); |
|
| 31 | + $js->semantic()->popup("#".$this->_container->getIdentifier(), $this->params); |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | \ No newline at end of file |
@@ -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; |
@@ -70,9 +70,9 @@ discard block |
||
| 70 | 70 | * @param string|HtmlIcon $icon |
| 71 | 71 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 72 | 72 | */ |
| 73 | - public function asIcon($icon){ |
|
| 73 | + public function asIcon($icon) { |
|
| 74 | 74 | $iconO=$icon; |
| 75 | - if(\is_string($icon)){ |
|
| 75 | + if (\is_string($icon)) { |
|
| 76 | 76 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
| 77 | 77 | } |
| 78 | 78 | $this->addToProperty("class", "icon"); |
@@ -86,14 +86,14 @@ discard block |
||
| 86 | 86 | * @param string $before |
| 87 | 87 | * @return \Ajax\semantic\html\elements\HtmlLabel |
| 88 | 88 | */ |
| 89 | - public function addLabel($caption,$before=false){ |
|
| 89 | + public function addLabel($caption, $before=false) { |
|
| 90 | 90 | $this->tagName="div"; |
| 91 | 91 | $this->addToProperty("class", "labeled"); |
| 92 | - $this->content=new HtmlButton("button-".$this->identifier,$this->content); |
|
| 92 | + $this->content=new HtmlButton("button-".$this->identifier, $this->content); |
|
| 93 | 93 | $this->content->setTagName("div"); |
| 94 | - $label=new HtmlLabel("label-".$this->identifier,$caption,"a"); |
|
| 94 | + $label=new HtmlLabel("label-".$this->identifier, $caption, "a"); |
|
| 95 | 95 | $label->setBasic(); |
| 96 | - $this->addContent($label,$before); |
|
| 96 | + $this->addContent($label, $before); |
|
| 97 | 97 | return $label; |
| 98 | 98 | } |
| 99 | 99 | /* |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function fromArray($array) { |
| 104 | 104 | $array=parent::fromArray($array); |
| 105 | - foreach ( $array as $key => $value ) { |
|
| 105 | + foreach ($array as $key => $value) { |
|
| 106 | 106 | $this->setProperty($key, $value); |
| 107 | 107 | } |
| 108 | 108 | return $array; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * show it is currently the active user selection |
| 113 | 113 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 114 | 114 | */ |
| 115 | - public function setActive(){ |
|
| 115 | + public function setActive() { |
|
| 116 | 116 | return $this->addToProperty("class", "active"); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * hint towards a positive consequence |
| 121 | 121 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 122 | 122 | */ |
| 123 | - public function setPositive(){ |
|
| 123 | + public function setPositive() { |
|
| 124 | 124 | return $this->addToProperty("class", "positive"); |
| 125 | 125 | } |
| 126 | 126 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * hint towards a negative consequence |
| 129 | 129 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 130 | 130 | */ |
| 131 | - public function setNegative(){ |
|
| 131 | + public function setNegative() { |
|
| 132 | 132 | return $this->addToProperty("class", "negative"); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -136,14 +136,14 @@ discard block |
||
| 136 | 136 | * formatted to toggle on/off |
| 137 | 137 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 138 | 138 | */ |
| 139 | - public function setToggle(){ |
|
| 139 | + public function setToggle() { |
|
| 140 | 140 | return $this->addToProperty("class", "toggle"); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | 144 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 145 | 145 | */ |
| 146 | - public function setCircular(){ |
|
| 146 | + public function setCircular() { |
|
| 147 | 147 | return $this->addToProperty("class", "circular"); |
| 148 | 148 | } |
| 149 | 149 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * button is less pronounced |
| 152 | 152 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 153 | 153 | */ |
| 154 | - public function setBasic(){ |
|
| 154 | + public function setBasic() { |
|
| 155 | 155 | return $this->addToProperty("class", "basic"); |
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | 158 | \ No newline at end of file |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | return $this->setParam("onShow", "%function(){".$jsCode."}%"); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - public function setExclusive($value){ |
|
| 33 | + public function setExclusive($value) { |
|
| 34 | 34 | return $this->setParam("exclusive", $value); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param string $popup the css selector of the popup |
| 40 | 40 | * @return \Ajax\semantic\components\Popup |
| 41 | 41 | */ |
| 42 | - public function setPopup($popup){ |
|
| 42 | + public function setPopup($popup) { |
|
| 43 | 43 | return $this->setParam("popup", $popup); |
| 44 | 44 | } |
| 45 | 45 | //TODO other events implementation |