A factory class used to instantiate instances of pre-provided File formats. More...
Public Member Functions | |
__construct (ObjectFactory $objectFactory) | |
create (string $format, FileBasedMessageGroup $group) | |
Returns a FileFormat class instance based on the $format passed. | |
loadInstance (string $class, FileBasedMessageGroup $group) | |
getClassname (string $format) | |
A factory class used to instantiate instances of pre-provided File formats.
Definition at line 18 of file FileFormatFactory.php.
MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::__construct | ( | ObjectFactory | $objectFactory | ) |
Definition at line 37 of file FileFormatFactory.php.
MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::create | ( | string | $format, |
FileBasedMessageGroup | $group ) |
Returns a FileFormat class instance based on the $format passed.
string | $format | FileFormat identifier |
FileBasedMessageGroup | $group |
Definition at line 48 of file FileFormatFactory.php.
MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::getClassname | ( | string | $format | ) |
Definition at line 78 of file FileFormatFactory.php.
MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::loadInstance | ( | string | $class, |
FileBasedMessageGroup | $group ) |
Definition at line 68 of file FileFormatFactory.php.