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/semantic/html/collections/HtmlMenu.php 1 location
|
@@ 47-54 (lines=8) @@
|
44 |
|
* @param int $index |
45 |
|
* @return HtmlDoubleElement |
46 |
|
*/ |
47 |
|
public function getItem($index) { |
48 |
|
if (is_int($index)) |
49 |
|
return $this->content[$index]; |
50 |
|
else { |
51 |
|
$elm=$this->getElementById($index, $this->content); |
52 |
|
return $elm; |
53 |
|
} |
54 |
|
} |
55 |
|
|
56 |
|
public function setActiveItem($index){ |
57 |
|
$item=$this->getItem($index); |
Ajax/common/html/html5/HtmlCollection.php 1 location
|
@@ 48-55 (lines=8) @@
|
45 |
|
* @param int|string $index the index or the item identifier |
46 |
|
* @return \Ajax\common\html\HtmlDoubleElement |
47 |
|
*/ |
48 |
|
public function getItem($index) { |
49 |
|
if (is_int($index)) |
50 |
|
return $this->content[$index]; |
51 |
|
else { |
52 |
|
$elm=$this->getElementById($index, $this->content); |
53 |
|
return $elm; |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
public function setItem($index, $value) { |
58 |
|
$this->content[$index]=$value; |