MediaViewHelper

Helper class for processing video and audio tags inserted by the Media Manager.

 class Cms\Classes\MediaViewHelper

Traits

Trait Description
Singleton

Singleton trait.

Properties

protected $playerPartialFlags : mixed

Methods

public processHtml (string $html) : string

Replaces audio and video tags inserted by the Media Manager with players markup.

Parameters
Property Description
$html
string

Specifies the HTML string to process.

Returns
string

Returns the processed HTML string.

protected extractMediaTags ($html)

Parameters
Property Description
$html
mixed
Returns
mixed

protected generateMediaTagMarkup ($type, $src)

Parameters
Property Description
$type
mixed
$src
mixed
Returns
mixed

protected getDefaultPlayerMarkup ($type, $src)

Parameters
Property Description
$type
mixed
$src
mixed
Returns
mixed

protected playerPartialExists ($name)

Parameters
Property Description
$name
mixed
Returns
mixed

inherited public __clone ()

Inherited from Singleton
Returns
mixed

inherited public __wakeup ()

Inherited from Singleton
Returns
mixed

inherited public static final forgetInstance ($container = null) : void

Inherited from Singleton

Forget this singleton's instance if it exists

Parameters
Property Description
$container
mixed
Returns
void

inherited public static final instance ($container = null) : static

Inherited from Singleton

Create a new instance of this singleton.

Parameters
Property Description
$container
mixed
Returns
static

inherited protected final __construct ()

Inherited from Singleton

Constructor.

Returns
mixed

inherited protected init ()

Inherited from Singleton

Initialize the singleton free from constructor parameters.

Returns
mixed
Copyright © 2024 Winter CMS