Class BeEmbedMediaHelper
Helper class to embed media contents
- Helper
- AppHelper
- BeEmbedMediaHelper
Methods summary
public
|
|
public
|
|
public
string,
|
|
protected
|
#
getCurrentConf( )
update object properties according to current configure values for: - media - mediaRoot - mediaUrl - tmp - imgMissingFile |
private
string
|
|
private
string
|
|
private
string
|
|
private
string
|
#
showVideo( array $obj, array $params, array $htmlAttributes )
html video output return html or uri for video $obj, with options $params and html attributes $htmlAttributes if $params['presentation'] == 'thumb' => return html thumb ($params['URLonly'] not present) or thumb uri ($params['URLonly'] is present) if $params['presentation'] == 'full' => return embed object if $params['presentation'] == 'link' => return object link |
private
string
|
#
showAudio( array $obj, array $params, array $htmlAttributes )
html audio output return html or uri for audio $obj, with options $params and html attributes $htmlAttributes if present $params['URLonly'], return $obj uri if $params['presentation'] == 'link' => return html link for $obj if $params['presentation'] == 'full' => return embed object else return html image for $obj (@see HtmlHelper) |
private
string,
|
#
showBEFile( array $obj, array $params, array $htmlAttributes )
html befile output return html or uri for file $obj, with options $params and html attributes $htmlAttributes if present $params['URLonly'], return $obj uri if $params['presentation'] == 'thumb' => return html image for $obj (@see HtmlHelper) else return html link for $obj (@see HtmlHelper) |
private
string
|
#
showApplication( array $obj, array $params, array $htmlAttributes )
application show for $obj if $params['presentation'] == 'full' && $obj['application_name'] == 'flash' => return embed flash (@see BeEmbedFlashHelper) if $params['presentation'] == 'thumb' => return html image for $obj (@see HtmlHelper) |
private
string
|
|
private
string
|
#
getImageSrc( array $obj, array $params )
Return image $obj uri if $params['presentation'] == 'thumb', return image thumb (@see BeThumb Lib) |
private
mixed
|
|
private
string
|
#
getSourceUrl( array $obj )
Get source url. If $obj has a provider try to retrieve source url If provider doesn't provide source or $obj hasn't a provider use $obj['uri'] |
private
boolean
|
|
protected
string,
|
#
getMediaTypeImage( array $obj )
media type image return path for object type image if BACKEND_APP => try to find image in /webroot/img/iconset, then /webroot/img/ |
Methods inherited from AppHelper
Properties summary
private
array
|
$conf
Contains media config |
#
array()
|
private
array
|
$defaultPresentation
Default output for object type |
#
array(
'Image' => 'thumb',
'Video' => 'full',
'Audio' => 'full',
'Application' => 'full',
'BEFile' => 'link'
)
|
private
|
$beThumb
|
#
null
|
public
array
|
$helpers
Included helpers. |
#
array('Html', 'BeEmbedFlash', 'BeEmbedHtml5')
|