public function getFiles($ids)
    {
        settype($ids, 'array');

        $libraries = $this->getList();
        $sorted = $this->graph->sort($ids, $libraries);

        if (empty($sorted)) {
            return array();
        }

        return $this->prepareFiles($sorted, $libraries);
    }
public function getFiles($ids)
    {
        settype($ids, 'array');

        $libraries = $this->getList();
        $sorted = $this->graph->sort($ids, $libraries);

        if (empty($sorted)) {
            return array();
        }

        return $this->prepareFiles($sorted, $libraries);
    }
public function getFiles ( $ ids ) { settype ( $ ids , 'array' ) ; $ libraries = $ this -> getList ( ) ; $ sorted = $ this -> graph -> sort ( $ ids , $ libraries ) ; if ( empty ( $ sorted ) ) { return array ( ) ; } return $ this -> prepareFiles ( $ sorted , $ libraries ) ; }
Returns an array of sorted files for the given library IDs
according to their dependencies
@param string|array $ids
@return array
Returns an array of sorted files for the given library IDs according to their dependencies