* @author 2011 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-class core_media_manager {
+final class core_media_manager {
/**
* Option: Disable text link fallback.
*
private $embeddablemarkers;
/** @var core_media_manager caches a singleton instance */
- static protected $instance;
+ static private $instance;
/** @var moodle_page page this instance was initialised for */
- protected $page;
+ private $page;
/**
* Returns a singleton instance of a manager
* @param moodle_page $page The page we are going to add requirements to.
* @see core_media_manager::instance()
*/
- protected function __construct($page) {
+ private function __construct($page) {
if ($page) {
$this->page = $page;
$players = $this->get_players();
*
* @return core_media_player[] Array of core_media_player objects in rank order
*/
- protected function get_players() {
+ private function get_players() {
// Save time by only building the list once.
if (!$this->players) {
$sortorder = \core\plugininfo\media::get_enabled_plugins();
* @param array $options Options array
* @return string HTML code for embed
*/
- protected function fallback_to_link($urls, $name, $options) {
+ private function fallback_to_link($urls, $name, $options) {
// If link is turned off, return empty.
if (!empty($options[self::OPTION_NO_LINK])) {
return '';