private function getMenuElementChildren(Perspective $menuElement)
    {
        $user = $this->getSession()->getUser();
        $children = array();
        foreach ($menuElement->getChildren() as $section) {
            try {
                $resolver = new ActionResolver($section->getUrl());
                if (FuncProxy::accessPossible($user, $resolver->getController(), $resolver->getAction())) {
                    $children[] = $section;
                }
            } catch (ResolverException $e) {
                $this->logWarning('Invalid reference in structures: '.$e->getMessage());
            }
        }
        return $children;
    }
private function getMenuElementChildren(Perspective $menuElement)
    {
        $user = $this->getSession()->getUser();
        $children = array();
        foreach ($menuElement->getChildren() as $section) {
            try {
                $resolver = new ActionResolver($section->getUrl());
                if (FuncProxy::accessPossible($user, $resolver->getController(), $resolver->getAction())) {
                    $children[] = $section;
                }
            } catch (ResolverException $e) {
                $this->logWarning('Invalid reference in structures: '.$e->getMessage());
            }
        }
        return $children;
    }
private function getMenuElementChildren ( Perspective $ menuElement ) { $ user = $ this -> getSession ( ) -> getUser ( ) ; $ children = array ( ) ; foreach ( $ menuElement -> getChildren ( ) as $ section ) { try { $ resolver = new ActionResolver ( $ section -> getUrl ( ) ) ; if ( FuncProxy :: accessPossible ( $ user , $ resolver -> getController ( ) , $ resolver -> getAction ( ) ) ) { $ children [ ] = $ section ; } } catch ( ResolverException $ e ) { $ this -> logWarning ( 'Invalid reference in structures: ' . $ e -> getMessage ( ) ) ; } } return $ children ; }
Get nested menu elements depending on user rights.

@param Perspective $menuElement from the structure.xml
@return array menu elements list
Get nested menu elements depending on user rights .