Properties

$settings

$settings : \stdClass

The configuration The resolved configuration object.

Type

\stdClass — A resolved configuration object

$extensions

$extensions : 

Type

$api

$api : \MaxCDN

Store API Store the API instance to max cdn

Type

\MaxCDN — A max cdn interface object

$account

$account : 

Type

$config_file

$config_file : 

Type

$preset_file

$preset_file : 

Type

$is_connected

$is_connected : 

Type

Methods

__construct()

__construct() 

construct construct the CDN abstraction layer

BuildLink()

BuildLink(string  $url, boolean  $https = false) : string

mk link create an absolute link to the cdn storage

Parameters

string $url

string The path to a stored cache file

boolean $https

boolean Use https support

Returns

string —

A parsed url with absolute domain and protocol or the original url

ExtractPathFromLink()

ExtractPathFromLink(string  $url) : string

clear link remove the cdn domain from the link

Parameters

string $url

The path to a stored cache file

Returns

string —

A parsed url without absolute domain and protocol or the original url

GetFormPreset()

GetFormPreset() : \FAA\Obj\Result

preset load the common CDN settings preset for generation a formular

Returns

\FAA\Obj\Result

$result A fileaccess result object

GetSettings()

GetSettings() : \FAA\Obj\Result

get load the common CDN settings object

Returns

\FAA\Obj\Result

$result A system result object

StoreSettings()

StoreSettings(array  $values) : \FAA\Obj\Result

Store settings Save the custom MaxCDN settings object in the settings repo

Parameters

array $values

The configuration values

Returns

\FAA\Obj\Result

A system result object

DeleteAll()

DeleteAll() : \FAA\Obj\Result

purge all values delete all files in a specific zone of the CDN

Returns

\FAA\Obj\Result

A default result object

DeleteSingle()

DeleteSingle(string  $file) : \FAA\Obj\Result

delete delete a single file from cache

Parameters

string $file

The path to a stored cache file

Returns

\FAA\Obj\Result

A system result object

filterExtensions()

filterExtensions() 

isActive()

isActive() 

loadLocalSettings()

loadLocalSettings() : void

connect load settings object from local storage

connect()

connect() : \FAA\Obj\Result

connect connect to the cdn api and load account values

Returns

\FAA\Obj\Result

A system result object

delete_resolved()

delete_resolved(  $call,   $params = null) : \FAA\Obj\Result

call delete a list of files from remote

Parameters

$call

string The request path

$params

mixed The request additional settings

Returns

\FAA\Obj\Result

A default result object

fetch_resolved()

fetch_resolved(  $call) : \FAA\Obj\Result

call fetch resolved values from remote endpoint

Parameters

$call

string The request path

Returns

\FAA\Obj\Result

$result A default result object