Skip to content

Commit bbe42f4

Browse files
committed
Corrections for SLI
1 parent 263c120 commit bbe42f4

File tree

25 files changed

+18
-42
lines changed

25 files changed

+18
-42
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
*.buildpath
33
.settings/*
44
doxygeneJquery
5-
doc/*
5+
doc/*

Ajax/Semantic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Semantic extends BaseGui {
1717
private $language;
1818

1919
public function __construct($autoCompile=true) {
20-
parent::__construct($autoCompile=true);
20+
parent::__construct($autoCompile);
2121
}
2222

2323

Ajax/bootstrap/components/Carousel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Ajax\bootstrap\components;
44

55
use Ajax\JsUtils;
6-
use Ajax\common\JsCode;
76
use Ajax\common\components\SimpleExtComponent;
87

98
/**

Ajax/bootstrap/html/HtmlForm.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ public function compile(JsUtils $js=NULL, &$view=NULL) {
5151
$control=new HtmlSelect($futureElement,"");
5252
$control->setProperty("size", $futureElementValues [1]);
5353
$control->setClass("form-control");
54-
//$control->setLabel($this->getPart($futureElement));
55-
//TODO check Select label
5654
break;
5755
default:
5856
$control=new HtmlInput($futureElement);
@@ -79,7 +77,7 @@ private function getPart($str, $part=1) {
7977
return $result;
8078
}
8179

82-
private function getId($str) {
80+
protected function getId($str) {
8381
$result=preg_split('/(?=[A-Z])/', $str);
8482
if (sizeof($result)>2) {
8583
$result=$result [2];
@@ -89,7 +87,7 @@ private function getId($str) {
8987
return $result;
9088
}
9189

92-
private function getPrefix($element) {
90+
protected function getPrefix($element) {
9391
$result="input_text";
9492
foreach ( $this->formElementsPrefix as $k => $v ) {
9593
if (JString::startswith($element, $k)) {

Ajax/bootstrap/html/HtmlProgressbar.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class HtmlProgressbar extends HtmlBsDoubleElement {
1515
protected $striped="";
1616
protected $active;
1717
protected $caption;
18-
protected $isStacked=false;
18+
protected $stacked=false;
1919
protected $style="";
2020
protected $styleLimits=null;
2121

@@ -76,7 +76,7 @@ public function getValue() {
7676

7777
public function stack(HtmlProgressbar $progressBar) {
7878
$this->_template='%content%';
79-
$progressBar->setIsStacked(true);
79+
$progressBar->setStacked(true);
8080
$progressBar->showCaption($this->caption=="%value%%");
8181
$progressBar->setStriped($this->striped!=="" || $progressBar->isStriped());
8282
$progressBar->setActive($this->active==="active" || $progressBar->isActive());
@@ -109,12 +109,12 @@ public function setMin($min) {
109109
return $this;
110110
}
111111

112-
public function getIsStacked() {
113-
return $this->isStacked;
112+
public function getStacked() {
113+
return $this->stacked;
114114
}
115115

116-
public function setIsStacked($isStacked) {
117-
$this->isStacked=$isStacked;
116+
public function setStacked($stacked) {
117+
$this->stacked=$stacked;
118118
return $this;
119119
}
120120

@@ -143,7 +143,7 @@ public function compile(JsUtils $js=NULL, &$view=NULL) {
143143
}
144144
$this->style=$actualStyle;
145145
$this->_template=str_replace("%caption%", $this->caption, $this->_template);
146-
if ($this->getIsStacked()===false) {
146+
if ($this->getStacked()===false) {
147147
$this->wrap('<div class="progress">', '</div>');
148148
}
149149
return parent::compile($js, $view);

Ajax/common/components/SimpleComponent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function __construct(JsUtils $js=NULL) {
2424
protected function compileEvents() {
2525
foreach ( $this->events as $event => $jsCode ) {
2626
$itemSelector=JString::getValueBetween($event);
27-
//echo $itemSelector.":::".$jsCode."<br>";
2827
if($event=="execute"){
2928
$this->jquery_code_for_compile []=$jsCode;
3029
}else if($event=="beforeExecute"){

Ajax/common/traits/JsUtilsInternalTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ protected function conflict() {
9090
public function addToCompile($jsScript) {
9191
$this->_addToCompile($jsScript);
9292
}
93-
}
93+
}

Ajax/semantic/components/Accordion.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@ public function setOn($value="click") {
2424
public function setExclusive($value=true) {
2525
return $this->setParam("exclusive", $value);
2626
}
27-
28-
//TODO other events implementation
2927
}

Ajax/semantic/components/Checkbox.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ public function setOnUnchecked($value) {
2323
public function setOnChange($value){
2424
$this->params["onChange"]="%function(){".$value."}%";
2525
}
26-
//TODO other events implementation
2726
}

Ajax/semantic/components/Popup.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ public function setInline($value){
5151
public function setPosition($value){
5252
return $this->setParam("position", $value);
5353
}
54-
//TODO other events implementation
5554
}

0 commit comments

Comments
 (0)