FileAccess Orion

ContentDeliveryNetwork
in

Define CDN Handler

Tags
category

Interface function

author

Tobias Teichner webmaster@teichner.biz

since

File available since v0.84

Table of Contents

BuildLink()  : string
Build link Build a link to cdn based on the given local link
DeleteAll()  : Result
purge all values delete all files in a specific zone of the CDN
DeleteSingle()  : Result
delete single delete a single file from cache
ExtractPathFromLink()  : string
clear link remove the cdn domain from the link
GetFormPreset()  : Result
Get settings form Load the settings form setup
GetSettings()  : Result
Get settings Load the settings file
IsActive()  : bool
Is active?
StackInfo()  : Result
StoreSettings()  : Result
Save settings form Save the settings of the form setup

Methods

Build link Build a link to cdn based on the given local link

public BuildLink(string $url[, bool $https = false ]) : string
Parameters
$url : string

The url to map

$https : bool = false

Use https protocol

Return values
string

The mapped link to the configured cdn

DeleteSingle()

delete single delete a single file from cache

public DeleteSingle(string $file) : Result
Parameters
$file : string

The path to a stored cache file

Return values
Result

A system result object

clear link remove the cdn domain from the link

public ExtractPathFromLink(string $url) : string
Parameters
$url : string

The path to a stored cache file

Return values
string

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

StoreSettings()

Save settings form Save the settings of the form setup

public StoreSettings(array<string|int, mixed> $values) : Result
Parameters
$values : array<string|int, mixed>

The update values

Return values
Result

System result object

Search results