mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-58220 repository_skydrive: Remove references to google
This commit is contained in:
parent
eb47ad4a6e
commit
ba3b0145ff
2 changed files with 6 additions and 7 deletions
|
@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
$definitions = array(
|
$definitions = array(
|
||||||
// Used to store file ids for folders.
|
// 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.
|
// The static acceleration size has been based upon the depths of a single path.
|
||||||
'folder' => array(
|
'folder' => array(
|
||||||
'mode' => cache_store::MODE_APPLICATION,
|
'mode' => cache_store::MODE_APPLICATION,
|
||||||
|
|
|
@ -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 string $searchtext text to search for.
|
||||||
* @param int $page search page.
|
* @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:
|
* 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
|
* 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().
|
* 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 $path parent path of the current files, will not be used for the query.
|
||||||
* @param string $parent Parent id.
|
* @param string $parent Parent id.
|
||||||
* @param int $page page.
|
* @param int $page page.
|
||||||
|
@ -327,8 +328,6 @@ class repository_skydrive extends repository {
|
||||||
'link' => $remotefile->webUrl
|
'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 = '';
|
$thumb = '';
|
||||||
$thumbwidth = 0;
|
$thumbwidth = 0;
|
||||||
$thumbheight = 0;
|
$thumbheight = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue