Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\PageTranslation\TranslatablePageStateStore Class Reference

Manage translation state for translatable pages. More...

Public Member Functions

 __construct (PersistentCache $persistentCache, PageStore $pageStore)
 
 remove (PageIdentity $pageIdentity)
 
 set (PageIdentity $pageIdentity, TranslatableBundleState $selectedState)
 
 get (PageIdentity $pageIdentity)
 
 getRequested ()
 

Detailed Description

Manage translation state for translatable pages.

Author
Abijeet Patro @license GPL-2.0-or-later
Since
2024.07

Definition at line 19 of file TranslatablePageStateStore.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\TranslatablePageStateStore::__construct ( PersistentCache $persistentCache,
PageStore $pageStore )

Definition at line 23 of file TranslatablePageStateStore.php.

Member Function Documentation

◆ get()

MediaWiki\Extension\Translate\PageTranslation\TranslatablePageStateStore::get ( PageIdentity $pageIdentity)

Definition at line 46 of file TranslatablePageStateStore.php.

◆ getRequested()

MediaWiki\Extension\Translate\PageTranslation\TranslatablePageStateStore::getRequested ( )
Returns
PageRecord[]

Definition at line 56 of file TranslatablePageStateStore.php.

◆ remove()

MediaWiki\Extension\Translate\PageTranslation\TranslatablePageStateStore::remove ( PageIdentity $pageIdentity)

Definition at line 31 of file TranslatablePageStateStore.php.

◆ set()

MediaWiki\Extension\Translate\PageTranslation\TranslatablePageStateStore::set ( PageIdentity $pageIdentity,
TranslatableBundleState $selectedState )

Definition at line 35 of file TranslatablePageStateStore.php.


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