\QGoogleMimeType

This class build array of mime types suppuoted on Google Drive

Summary

Methods
Properties
Constants
__construct()
getType()
__get()
$fileName
$mimeTypes
No constants found
buildMimeArray()
$fileName
$mimeTypes
N/A
No private methods found
No private properties found
N/A

Properties

$fileName

$fileName : string

contains name of file

Type

string

$mimeTypes

$mimeTypes : array

contains array mime types

Type

array

$fileName

$fileName : string

Type

string — Name of file

$mimeTypes

$mimeTypes : array

Type

array — Array of mime types

Methods

__construct()

__construct(string $filename) : void

Create the QGoogleMimeType object.

Parameters

string $filename

The name of the file to ge mime type.

getType()

getType() : string|null

Retrieve mime type of file

Returns

string|null

__get()

__get(string $strName) : array|string

PHP Magic __get method implementation.

Parameters

string $strName

Name of the property to be fetched.

Returns

array|string

buildMimeArray()

buildMimeArray() : array

Retrieve array of mime types

Returns

array