Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory Class Reference

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)
 

Detailed Description

A factory class used to instantiate instances of pre-provided File formats.

Author
Abijeet Patro
Eugene Wang'ombe @license GPL-2.0-or-later
Since
2023.05

Definition at line 18 of file FileFormatFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::__construct ( ObjectFactory $objectFactory)

Definition at line 37 of file FileFormatFactory.php.

Member Function Documentation

◆ create()

MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::create ( string $format,
FileBasedMessageGroup $group )

Returns a FileFormat class instance based on the $format passed.

Parameters
string$formatFileFormat identifier
FileBasedMessageGroup$group
Returns
SimpleFormat

Definition at line 48 of file FileFormatFactory.php.

◆ getClassname()

MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::getClassname ( string $format)

Definition at line 78 of file FileFormatFactory.php.

◆ loadInstance()

MediaWiki\Extension\Translate\FileFormatSupport\FileFormatFactory::loadInstance ( string $class,
FileBasedMessageGroup $group )

Definition at line 68 of file FileFormatFactory.php.


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