Properties

$file

$file : 

Type

$w

$w : 

Type

$h

$h : 

Type

$tag_pre

$tag_pre : 

Type

$tag_post

$tag_post : 

Type

$ranges

$ranges : 

Type

$ext

$ext : 

Type

$base

$base : 

Type

$path

$path : 

Type

$jsonpath

$jsonpath : 

Type

$folder

$folder : 

Type

$allow

$allow : 

Type

$convert

$convert : 

Type

$head_expire_cache

$head_expire_cache : 

Type

$remote_dynamic

$remote_dynamic : 

Type

$remote_cache

$remote_cache : 

Type

$remote_url

$remote_url : 

Type

$remote_img

$remote_img : 

Type

$action_load

$action_load : 

Type

$action_live

$action_live : 

Type

$action_batch

$action_batch : 

Type

$action_cache

$action_cache : 

Type

$action_redirect

$action_redirect : 

Type

$mode

$mode : 

Type

$minsizelimit

$minsizelimit : 

Type

$mimetype

$mimetype : 

Type

Methods

__construct()

__construct(array  $scopein = null) 

UniversalContentManager __construct function.

Parameters

array $scopein

loadCfg()

loadCfg() 

load config from mcp.

loadScope()

loadScope(array  $scopein) 

loadScope function call manage the scope.

Parameters

array $scopein

LoadAllow()

LoadAllow(array  $allowcfg) 

loadAllow ref.

Parameters

array $allowcfg

checkAllow()

checkAllow() : boolean

isallow function check if is allow or not a specific extension.

Returns

boolean

checkFilePresentBySize()

checkFilePresentBySize(  $wsize,   $hsize) : string

checkFilePresentBySize check file by size.

Parameters

$wsize
$hsize

Returns

string —

filename

checkFilePresentByTag()

checkFilePresentByTag(  $tpre,   $tpost) : string

checkFilePresentByTag check file by tag.

Parameters

$tpre
$tpost

Returns

string —

filename

checkFilePresentByRanges()

checkFilePresentByRanges() : string

checkFilePresentByRanges function check if exist local the file as part of ranges.

tag+filename+tag.ext filename+tag.ext tag+filename.ext wxh_filename.ext filename_wxh.ext.

Returns

string —

filename

checkFilePresent()

checkFilePresent() : string

checkFilePresent function check if exist local the file.

tag+filename+tag.ext filename+tag.ext tag+filename.ext wxh_filename.ext filename_wxh.ext.

Returns

string —

filename

callRedirect()

callRedirect() 

callRedirect function.

manage the redirect funcion.

callSendFile()

callSendFile(mixed  $filename) 

callSendFile send file to live.

Parameters

mixed $filename

CreateBgRequest()

CreateBgRequest(string  $realfile = null) : array

CreateBgRequest function.

Parameters

string $realfile

Returns

array

writeBgRequest()

writeBgRequest(  $req) 

writeConvertRequest.

Parameters

$req

executeBgRequest()

executeBgRequest(  $obj) 

executeConvertRequest.

Parameters

$obj

run()

run() 

run script.