Documentation

GetFilesAndFoldersService
in package
implements GetFilesAndFoldersServiceInterface

Class used to retrieve folder listings from onedrive.

Interfaces, Classes, Traits and Enums

GetFilesAndFoldersServiceInterface
Interface for GetFilesAndFoldersService class.

Table of Contents

$drive  : array<string|int, mixed>
The drive array with all the values.
$graphService  : GraphService
Drupal\o365\GraphService definition.
__construct()  : mixed
Constructs a new GetFilesAndFoldersService object.
listFilesAndFolders()  : mixed
List all files and folders.
listSharedFilesAndFolders()  : array<string|int, mixed>|mixed
List all the shared files and folders.
listSpecialFilesAndFolders()  : array<string|int, mixed>|mixed
Get a list of special files and folders. For instance the recent files.
renderFileList()  : array<string|int, mixed>
Render the list of files and folders.
getDrive()  : mixed
Get the drive contents.

Properties

Methods

listFilesAndFolders()

List all files and folders.

public listFilesAndFolders([mixed $folder = FALSE ]) : mixed
Parameters
$folder : mixed = FALSE

The ID of a folder or FALSE for the root.

Return values
mixed

The list of files and folders.

listSharedFilesAndFolders()

List all the shared files and folders.

public listSharedFilesAndFolders([mixed $limit = 5 ]) : array<string|int, mixed>|mixed
Parameters
$limit : mixed = 5

The max amount of items to return.

Return values
array<string|int, mixed>|mixed

The list of files and folders.

listSpecialFilesAndFolders()

Get a list of special files and folders. For instance the recent files.

public listSpecialFilesAndFolders(mixed $type) : array<string|int, mixed>|mixed
Parameters
$type : mixed

The special type.

Return values
array<string|int, mixed>|mixed

The list of files and folders.

renderFileList()

Render the list of files and folders.

protected renderFileList() : array<string|int, mixed>
Return values
array<string|int, mixed>

The render array for the files and folders.

getDrive()

Get the drive contents.

private getDrive(string $endPoint) : mixed
Parameters
$endPoint : string

The endpoint we want the content from.

Tags
throws
TempStoreException
throws
IdentityProviderException
Return values
mixed

Search results