\QGoogleListFiles

This class download properties from all files on Google Drive

Summary

Methods
Properties
Constants
__construct()
__get()
retrieveFiltredFiles()
$numberOfFiles
$
$rootFolderID
$quotaTotal
$quotaUsed
$client
$service
$error
$errorGoogle
No constants found
No protected methods found
$client
$service
$error
$errorGoogle
$numberOfFiles
$arrayOfFiles
$rootFolderID
$quotaTotal
$quotaUsed
N/A
No private methods found
No private properties found
N/A

Properties

$numberOfFiles

$numberOfFiles : int

contains number of received files

Type

int

$

$ : Array

List of Google_DriveFile $arrayOfFiles contains array of Google files from Google Drive

Type

Array

$rootFolderID

$rootFolderID : string

The ID of root folder

Type

string

$quotaTotal

$quotaTotal : string

Total storage

Type

string

$quotaUsed

$quotaUsed : string

Used storage

Type

string

$client

$client : \Google_Client

contains Google Client

Type

\Google_Client

$service

$service : \Google_DriveService

contains Google Drive Service API to interact with Drive

Type

\Google_DriveService

$error

$error : string

contains error message

Type

string

$errorGoogle

$errorGoogle : string

contains error message from Google_Exception

Type

string

$client

$client : \Google_Client

Type

\Google_Client — Google Client API

$service

$service : \Google_DriveService

Type

\Google_DriveService — Google Drive Service API to interact with Drive

$error

$error : string

Type

string — Error message

$errorGoogle

$errorGoogle : string

Type

string — Google error message

$numberOfFiles

$numberOfFiles : int

Type

int — Number of received files

$arrayOfFiles

$arrayOfFiles : Array

Type

Array — List of Google_DriveFile Array of Google files from Google Drive

$rootFolderID

$rootFolderID : string

Type

string — The ID of root folder

$quotaTotal

$quotaTotal : string

Type

string — Total storage

$quotaUsed

$quotaUsed : string

Type

string — Used storage

Methods

__construct()

__construct() : void

Create the QGoogleListFiles object.

__get()

__get(string $strName) : int|Array

PHP Magic __get method implementation.

Parameters

string $strName

Name of the property to be fetched.

Throws

\Exception|\QCallerException

Returns

int|Array —

List of Google_DriveFile|Google_Client|Google_DriveService|string|null

retrieveFiltredFiles()

retrieveFiltredFiles(string $folder) : array|null

Retrieve filtred files.

Parameters

string $folder

The name of folder to filtred files (null:all files)

Returns

array|null