public function get_listing($path='', $page = '') {
        $ret = array();
        $ret['dynload'] = true;
        $ret['nosearch'] = true;
        $ret['manage'] = 'https://skydrive.live.com/';

        $fileslist = $this->skydrive->get_file_list($path);
        // Filter list for accepted types. Hopefully this will be done by core some day.
        $fileslist = array_filter($fileslist, array($this, 'filter'));
        $ret['list'] = $fileslist;

        // Generate path bar, always start with the plugin name.
        $ret['path']   = array();
        $ret['path'][] = array('name'=> $this->name, 'path'=>'');

        // Now add each level folder.
        $trail = '';
        if (!empty($path)) {
            $parts = explode('/', $path);
            foreach ($parts as $folderid) {
                if (!empty($folderid)) {
                    $trail .= ('/'.$folderid);
                    $ret['path'][] = array('name' => $this->skydrive->get_folder_name($folderid),
                                           'path' => $trail);
                }
            }
        }

        return $ret;
    }
public function get_listing($path='', $page = '') {
        $ret = array();
        $ret['dynload'] = true;
        $ret['nosearch'] = true;
        $ret['manage'] = 'https://skydrive.live.com/';

        $fileslist = $this->skydrive->get_file_list($path);
        // Filter list for accepted types. Hopefully this will be done by core some day.
        $fileslist = array_filter($fileslist, array($this, 'filter'));
        $ret['list'] = $fileslist;

        // Generate path bar, always start with the plugin name.
        $ret['path']   = array();
        $ret['path'][] = array('name'=> $this->name, 'path'=>'');

        // Now add each level folder.
        $trail = '';
        if (!empty($path)) {
            $parts = explode('/', $path);
            foreach ($parts as $folderid) {
                if (!empty($folderid)) {
                    $trail .= ('/'.$folderid);
                    $ret['path'][] = array('name' => $this->skydrive->get_folder_name($folderid),
                                           'path' => $trail);
                }
            }
        }

        return $ret;
    }
public function get_listing ( $ path = '' , $ page = '' ) { $ ret = array ( ) ; $ ret [ 'dynload' ] = true ; $ ret [ 'nosearch' ] = true ; $ ret [ 'manage' ] = 'https://skydrive.live.com/' ; $ fileslist = $ this -> skydrive -> get_file_list ( $ path ) ; // Filter list for accepted types. Hopefully this will be done by core some day. $ fileslist = array_filter ( $ fileslist , array ( $ this , 'filter' ) ) ; $ ret [ 'list' ] = $ fileslist ; // Generate path bar, always start with the plugin name. $ ret [ 'path' ] = array ( ) ; $ ret [ 'path' ] [ ] = array ( 'name' => $ this -> name , 'path' => '' ) ; // Now add each level folder. $ trail = '' ; if ( ! empty ( $ path ) ) { $ parts = explode ( '/' , $ path ) ; foreach ( $ parts as $ folderid ) { if ( ! empty ( $ folderid ) ) { $ trail .= ( '/' . $ folderid ) ; $ ret [ 'path' ] [ ] = array ( 'name' => $ this -> skydrive -> get_folder_name ( $ folderid ) , 'path' => $ trail ) ; } } } return $ ret ; }
Given a path, and perhaps a search, get a list of files.

See details on {@link http://docs.moodle.org/dev/Repository_plugins}

@param string $path identifier for current path
@param string $page the page number of file list
@return array list of files including meta information as specified by parent.
Given a path and perhaps a search get a list of files .