MediaViewHelper
in package
Uses
Singleton
Helper class for processing video and audio tags inserted by the Media Manager.
Tags
Table of Contents
- $instance : mixed
- $playerPartialFlags : mixed
- __clone() : mixed
- __wakeup() : mixed
- forgetInstance() : mixed
- Forget this singleton's instance if it exists
- instance() : mixed
- Create a new instance of this singleton.
- processHtml() : string
- Replaces audio and video tags inserted by the Media Manager with players markup.
- __construct() : mixed
- Constructor.
- extractMediaTags() : mixed
- generateMediaTagMarkup() : mixed
- getDefaultPlayerMarkup() : mixed
- init() : mixed
- Initialize the singleton free from constructor parameters.
- playerPartialExists() : mixed
Properties
$instance
protected
static mixed
$instance
$playerPartialFlags
protected
mixed
$playerPartialFlags
= []
Methods
__clone()
public
__clone() : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —forgetInstance()
Forget this singleton's instance if it exists
public
final static forgetInstance() : mixed
Return values
mixed —instance()
Create a new instance of this singleton.
public
final static instance() : mixed
Return values
mixed —processHtml()
Replaces audio and video tags inserted by the Media Manager with players markup.
public
processHtml(string $html) : string
Parameters
- $html : string
-
Specifies the HTML string to process.
Return values
string —Returns the processed HTML string.
__construct()
Constructor.
protected
final __construct() : mixed
Return values
mixed —extractMediaTags()
protected
extractMediaTags(mixed $html) : mixed
Parameters
- $html : mixed
Return values
mixed —generateMediaTagMarkup()
protected
generateMediaTagMarkup(mixed $type, mixed $src) : mixed
Parameters
- $type : mixed
- $src : mixed
Return values
mixed —getDefaultPlayerMarkup()
protected
getDefaultPlayerMarkup(mixed $type, mixed $src) : mixed
Parameters
- $type : mixed
- $src : mixed
Return values
mixed —init()
Initialize the singleton free from constructor parameters.
protected
init() : mixed
Return values
mixed —playerPartialExists()
protected
playerPartialExists(mixed $name) : mixed
Parameters
- $name : mixed