MediaWiki REL1_40
MediaHandlerFactory Class Reference

Class to construct MediaHandler objects. More...

Public Member Functions

 __construct (LoggerInterface $logger, array $registry)
 
 getHandler ( $type)
 

Protected Member Functions

 getHandlerClass ( $type)
 

Detailed Description

Class to construct MediaHandler objects.

Since
1.28

Definition at line 31 of file MediaHandlerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaHandlerFactory::__construct ( LoggerInterface $logger,
array $registry )
Parameters
LoggerInterface$logger
array$registry

Definition at line 73 of file MediaHandlerFactory.php.

Member Function Documentation

◆ getHandler()

MediaHandlerFactory::getHandler ( $type)
Parameters
string$typemimetype
Returns
MediaHandler|false

Definition at line 89 of file MediaHandlerFactory.php.

References $type, and getHandlerClass().

◆ getHandlerClass()

MediaHandlerFactory::getHandlerClass ( $type)
protected

Definition at line 81 of file MediaHandlerFactory.php.

References $type.

Referenced by getHandler().


The documentation for this class was generated from the following file: