Skip to content

Commit cfc18cf

Browse files
committed
each function
1 parent 23beed0 commit cfc18cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Ajax/semantic/html/modules/HtmlDropdown.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ public function setPropertyValues($property,$values){
209209
return $this;
210210
}
211211

212+
public function each($callBack){
213+
foreach ($this->items as $index=>$value){
214+
$callBack($index,$value);
215+
}
216+
return $this;
217+
}
218+
212219
public function getItem($index){
213220
return $this->items[$index];
214221
}

0 commit comments

Comments
 (0)