Ajax/semantic/html/collections/HtmlMenu.php 1 location
|
@@ 42-49 (lines=8) @@
|
| 39 |
|
* @param int $index |
| 40 |
|
* @return HtmlDoubleElement |
| 41 |
|
*/ |
| 42 |
|
public function getItem($index) { |
| 43 |
|
if (is_int($index)) |
| 44 |
|
return $this->content[$index]; |
| 45 |
|
else { |
| 46 |
|
$elm=$this->getElementById($index, $this->content); |
| 47 |
|
return $elm; |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
public function setActiveItem($index){ |
| 52 |
|
$item=$this->getItem($index); |
Ajax/semantic/html/elements/HtmlButtonGroups.php 1 location
|
@@ 74-81 (lines=8) @@
|
| 71 |
|
* @param int $index |
| 72 |
|
* @return HtmlButton |
| 73 |
|
*/ |
| 74 |
|
public function getElement($index) { |
| 75 |
|
if (is_int($index)) |
| 76 |
|
return $this->content[$index]; |
| 77 |
|
else { |
| 78 |
|
$elm=$this->getElementById($index, $this->content); |
| 79 |
|
return $elm; |
| 80 |
|
} |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
public function setElement($index, $button) { |
| 84 |
|
$this->content[$index]=$button; |