Cms\Classes\MediaViewHelper

Source: ~/modules/cms/classes/MediaViewHelper.php

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

Protected properties

protected $playerPartialFlags

protected static $instance

Public methods

public void __clone()

public void __wakeup()

public static void forgetInstance()

Forget this singleton's instance if it exists

public static void instance()

Create a new instance of this singleton.

public string processHtml(string $html)

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

Parameters
  • string $html - Specifies the HTML string to process.

Protected methods

protected void __construct()

Constructor.

protected void extractMediaTags($html)
Parameters
  • $html

protected void generateMediaTagMarkup($type, $src)
Parameters
  • $type
  • $src

protected void getDefaultPlayerMarkup($type, $src)
Parameters
  • $type
  • $src

protected void init()

Initialize the singleton free from constructor parameters.

protected void playerPartialExists($name)
Parameters
  • $name