public findIndexByID ( $id ) : integer | ||
return | integer | the index of the accordion view found, -1 if not found. |
public function findIndexByID($id)
{
foreach ($this as $index => $view) {
if ($view->getID(false) === $id) {
return $index;
}
}
return -1;
}