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; |
Ajax/common/html/HtmlCollection.php 1 location
|
@@ 55-62 (lines=8) @@
|
52 |
|
* @param int|string $index the index or the item identifier |
53 |
|
* @return \Ajax\common\html\HtmlDoubleElement |
54 |
|
*/ |
55 |
|
public function getItem($index) { |
56 |
|
if (is_int($index)) |
57 |
|
return $this->content[$index]; |
58 |
|
else { |
59 |
|
$elm=$this->getElementById($index, $this->content); |
60 |
|
return $elm; |
61 |
|
} |
62 |
|
} |
63 |
|
|
64 |
|
public function setItem($index, $value) { |
65 |
|
$this->content[$index]=$value; |