public function findAllFromString($aspectsOrElements)
    {
        $results = array();
        foreach (explode(',', $aspectsOrElements) as $aspectOrElement) {
            $aspectOrElement = trim($aspectOrElement);
            if (substr($aspectOrElement, 0, 1) == '@') {
                $els = $this->findAllWithAspect($aspectOrElement);
                foreach ($els as $el) {
                    $results[$el->ElementID] = $el;
                }
            } else {
                $el = $this->getBySlug($aspectOrElement);
                $results[$el->ElementID] = $el;
            }
        }

        return $results;
    }
public function findAllFromString($aspectsOrElements)
    {
        $results = array();
        foreach (explode(',', $aspectsOrElements) as $aspectOrElement) {
            $aspectOrElement = trim($aspectOrElement);
            if (substr($aspectOrElement, 0, 1) == '@') {
                $els = $this->findAllWithAspect($aspectOrElement);
                foreach ($els as $el) {
                    $results[$el->ElementID] = $el;
                }
            } else {
                $el = $this->getBySlug($aspectOrElement);
                $results[$el->ElementID] = $el;
            }
        }

        return $results;
    }
public function findAllFromString ( $ aspectsOrElements ) { $ results = array ( ) ; foreach ( explode ( ',' , $ aspectsOrElements ) as $ aspectOrElement ) { $ aspectOrElement = trim ( $ aspectOrElement ) ; if ( substr ( $ aspectOrElement , 0 , 1 ) == '@' ) { $ els = $ this -> findAllWithAspect ( $ aspectOrElement ) ; foreach ( $ els as $ el ) { $ results [ $ el -> ElementID ] = $ el ; } } else { $ el = $ this -> getBySlug ( $ aspectOrElement ) ; $ results [ $ el -> ElementID ] = $ el ; } } return $ results ; }
Returns all elements for given aspect names and element slugs

@param string $aspectOrElement Comma separated list of aspects names
and/or elements slugs

@return array An array of Element keyed by the elements' ids
Returns all elements for given aspect names and element slugs