system/core/classes/mvc/filters/CmsFilterer.php
protected function lookupElementsForNav($element_or_aspect)
    {
        $results = array();

        if (substr($element_or_aspect, 0, 1) == '@') {
            $elements = $this->ElementService->findAllWithAspect(substr($element_or_aspect, 1));
            foreach ( $elements as $element ) {
                $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
            }
        } else {
            // Assume it's an element slug
            $element = $this->ElementService->getBySlug($element_or_aspect);
            $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
        }

        return $results;
    }
protected function lookupElementsForNav($element_or_aspect)
    {
        $results = array();

        if (substr($element_or_aspect, 0, 1) == '@') {
            $elements = $this->ElementService->findAllWithAspect(substr($element_or_aspect, 1));
            foreach ( $elements as $element ) {
                $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
            }
        } else {
            // Assume it's an element slug
            $element = $this->ElementService->getBySlug($element_or_aspect);
            $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
        }

        return $results;
    }
protected function lookupElementsForNav ( $ element_or_aspect ) { $ results = array ( ) ; if ( substr ( $ element_or_aspect , 0 , 1 ) == '@' ) { $ elements = $ this -> ElementService -> findAllWithAspect ( substr ( $ element_or_aspect , 1 ) ) ; foreach ( $ elements as $ element ) { $ results [ ] = array ( 'Name' => $ element -> Name , 'URI' => $ element -> Slug ) ; } } else { // Assume it's an element slug $ element = $ this -> ElementService -> getBySlug ( $ element_or_aspect ) ; $ results [ ] = array ( 'Name' => $ element -> Name , 'URI' => $ element -> Slug ) ; } return $ results ; }
REturns all the elements for the specified element or aspect

@param string $element_or_aspect The element or aspect to lookup

@return array
REturns all the elements for the specified element or aspect