Ajax/semantic/html/elements/HtmlButtonGroups.php 1 location
|
@@ 75-82 (lines=8) @@
|
72 |
|
* @param int $index |
73 |
|
* @return HtmlButton |
74 |
|
*/ |
75 |
|
public function getElement($index) { |
76 |
|
if (is_int($index)) |
77 |
|
return $this->content[$index]; |
78 |
|
else { |
79 |
|
$elm=$this->getElementById($index, $this->content); |
80 |
|
return $elm; |
81 |
|
} |
82 |
|
} |
83 |
|
|
84 |
|
public function setElement($index, $button) { |
85 |
|
$this->content[$index]=$button; |
Ajax/common/html/HtmlCollection.php 1 location
|
@@ 72-79 (lines=8) @@
|
69 |
|
* @param int|string $index the index or the item identifier |
70 |
|
* @return \Ajax\common\html\HtmlDoubleElement |
71 |
|
*/ |
72 |
|
public function getItem($index) { |
73 |
|
if (is_int($index)) |
74 |
|
return $this->content[$index]; |
75 |
|
else { |
76 |
|
$elm=$this->getElementById($index, $this->content); |
77 |
|
return $elm; |
78 |
|
} |
79 |
|
} |
80 |
|
|
81 |
|
public function setItem($index, $value) { |
82 |
|
$this->content[$index]=$value; |