MDL-58220 repository_skydrive: Remove references to google

This commit is contained in:
Damyon Wiese 2017-03-29 14:45:34 +08:00
parent eb47ad4a6e
commit ba3b0145ff
2 changed files with 6 additions and 7 deletions

View file

@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die();
$definitions = array(
// Used to store file ids for folders.
// The keys used are full path to the folder, the values are the id in google drive.
// The keys used are full path to the folder, the values are the id in office 365.
// The static acceleration size has been based upon the depths of a single path.
'folder' => array(
'mode' => cache_store::MODE_APPLICATION,

View file

@ -237,7 +237,7 @@ class repository_skydrive extends repository {
}
/**
* Search throughout the Google Drive.
* Search throughout the OneDrive
*
* @param string $searchtext text to search for.
* @param int $page search page.
@ -261,15 +261,16 @@ class repository_skydrive extends repository {
}
/**
* Query Google Drive for files and folders using a search query.
* Query OneDrive for files and folders using a search query.
*
* Documentation about the query format can be found here:
* https://developers.google.com/drive/search-parameters
* https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/driveitem
* https://developer.microsoft.com/en-us/graph/docs/overview/query_parameters
*
* This returns a list of files and folders with their details as they should be
* formatted and returned by functions such as get_listing() or search().
*
* @param string $q search query as expected by the Google API.
* @param string $q search query as expected by the Graph API.
* @param string $path parent path of the current files, will not be used for the query.
* @param string $parent Parent id.
* @param int $page page.
@ -327,8 +328,6 @@ class repository_skydrive extends repository {
'link' => $remotefile->webUrl
]);
// Adds the file to the file list. Using the itemId along with the name as key
// of the array because Google Drive allows files with identical names.
$thumb = '';
$thumbwidth = 0;
$thumbheight = 0;