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