class CVideosHelper


Located at : UKNOWVA_ROOT/components/com_community/helpers/videos.php

Properties

static $rand_agent
static $default_options

Methods

static 
validateVideo($fileName)

No description

static 
formatDuration($duration, $format = 'HH:MM:SS')

No description

static string
toNiceHMS($hms)

Remove Extra Leading Zeroes 00:01:30 will became 01:30

static 
getVideoLinkPatterns()

No description

static 
getVideoLinkMatches($content)

No description

static 
getVideoLink($content, $videoWidth = '425', $videoHeight = '344')

No description

static 
getVideoReturnUrlFromRequest($videoType = 'default')

No description

static 
getVideoSize($retunType = 'default', $displayType = 'display')

No description

static 
getValidMIMEType()

No description

static string
getVideoInfo(string $url, array $options = NULL)

Returns the output of a remote URL. Any curl option may be used.

getValidExtensionType()

No description

Details

at line 12
static validateVideo($fileName)

Parameters

$fileName

at line 22
static formatDuration($duration, $format = 'HH:MM:SS')

Parameters

$duration
$format

at line 61
static string toNiceHMS($hms)

Remove Extra Leading Zeroes 00:01:30 will became 01:30

Parameters

$hms

Return Value

string nice HMS

at line 73
static getVideoLinkPatterns()

at line 96
static getVideoLinkMatches($content)

Parameters

$content

Parameters

$content
$videoWidth
$videoHeight

at line 166
static getVideoReturnUrlFromRequest($videoType = 'default')

Parameters

$videoType

at line 191
static getVideoSize($retunType = 'default', $displayType = 'display')

Parameters

$retunType
$displayType

at line 228
static getValidMIMEType()

at line 331
static string getVideoInfo(string $url, array $options = NULL)

Returns the output of a remote URL. Any curl option may be used.

// Do a simple GET request $data = Remote::get($url);

// Do a POST request
$data = Remote::get($url, array(
    CURLOPT_POST       => TRUE,
    CURLOPT_POSTFIELDS => http_build_query($array),
));

Parameters

string $url remote URL
array $options curl options

Return Value

string

Exceptions

Videoapi_Exception

at line 383
getValidExtensionType()