public function getEnabledLinks()
    {
        switch ($this->LinkMode) {
            
            case self::MODE_PAGES:
                
                $links = ArrayList::create();
                
                foreach ($this->LinkedPages() as $page) {
                    $link = $page->toLink();
                    $link->setParent($this);
                    $links->push($link);
                }
                
                break;
                
            default:
                
                $links = $this->getLinks()->filterByCallback(function ($link) {
                    return $link->isEnabled();
                });
                
        }
        
        return $links->sort($this->getSortOrder());
    }
public function getEnabledLinks()
    {
        switch ($this->LinkMode) {
            
            case self::MODE_PAGES:
                
                $links = ArrayList::create();
                
                foreach ($this->LinkedPages() as $page) {
                    $link = $page->toLink();
                    $link->setParent($this);
                    $links->push($link);
                }
                
                break;
                
            default:
                
                $links = $this->getLinks()->filterByCallback(function ($link) {
                    return $link->isEnabled();
                });
                
        }
        
        return $links->sort($this->getSortOrder());
    }
public function getEnabledLinks ( ) { switch ( $ this -> LinkMode ) { case self :: MODE_PAGES : $ links = ArrayList :: create ( ) ; foreach ( $ this -> LinkedPages ( ) as $ page ) { $ link = $ page -> toLink ( ) ; $ link -> setParent ( $ this ) ; $ links -> push ( $ link ) ; } break ; default : $ links = $ this -> getLinks ( ) -> filterByCallback ( function ( $ link ) { return $ link -> isEnabled ( ) ; } ) ; } return $ links -> sort ( $ this -> getSortOrder ( ) ) ; }
Answers a list of the enabled links within the receiver.

@return ArrayList
Answers a list of the enabled links within the receiver .