Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory Class Reference

Create instances of various classes based on the type of TranslatableBundle. More...

Public Member Functions

 __construct (TranslatablePageStore $translatablePageStore, MessageBundleStore $messageBundleStore)
 
 getBundle (Title $title)
 Returns a TranslatableBundle if Title is a valid translatable bundle else returns null.
 
 getValidBundle (Title $title)
 Return a TranslatableBundle from the Title, throwing an error if it is not a TranslatableBundle.
 
 getBundleFromClass (Title $title, string $bundleType)
 
 getPageMoveLogger (TranslatableBundle $bundle)
 
 getPageDeleteLogger (TranslatableBundle $bundle)
 
 getStore (TranslatableBundle $bundle)
 

Detailed Description

Create instances of various classes based on the type of TranslatableBundle.

Author
Abijeet Patro
Niklas Laxström
Since
2022.03 @license GPL-2.0-or-later

Definition at line 19 of file TranslatableBundleFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::__construct ( TranslatablePageStore $translatablePageStore,
MessageBundleStore $messageBundleStore )

Definition at line 23 of file TranslatableBundleFactory.php.

Member Function Documentation

◆ getBundle()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::getBundle ( Title $title)

Returns a TranslatableBundle if Title is a valid translatable bundle else returns null.

Definition at line 32 of file TranslatableBundleFactory.php.

◆ getBundleFromClass()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::getBundleFromClass ( Title $title,
string $bundleType )

Definition at line 52 of file TranslatableBundleFactory.php.

◆ getPageDeleteLogger()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::getPageDeleteLogger ( TranslatableBundle $bundle)

Definition at line 70 of file TranslatableBundleFactory.php.

◆ getPageMoveLogger()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::getPageMoveLogger ( TranslatableBundle $bundle)

Definition at line 60 of file TranslatableBundleFactory.php.

◆ getStore()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::getStore ( TranslatableBundle $bundle)

Definition at line 80 of file TranslatableBundleFactory.php.

◆ getValidBundle()

MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleFactory::getValidBundle ( Title $title)

Return a TranslatableBundle from the Title, throwing an error if it is not a TranslatableBundle.

Definition at line 43 of file TranslatableBundleFactory.php.


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