/** * Checks if element is currently opened * @final * @return bool Ergebnis */ public final function isCurrent() { $controller = $action = ''; $info = Router::getCurrentController(); if (count($info) == 2) { list($controller, $action) = $info; return $controller == $this->controller; } return false; }