Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler Class Reference

Hook handler for the TranslateSandbox. More...

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler:

Public Member Functions

 __construct (Config $config)
 
 onUserGetRights ( $user, &$rights)
 @inheritDoc
 
 onTitleQuickPermissions ( $title, $user, $action, &$errors, $doExpensiveQueries, $short)
 @inheritDoc
 
 onGetPreferences ( $user, &$preferences)
 @inheritDoc
 
 onApiCheckCanExecute ( $module, $user, &$message)
 Inclusion listing for certain API modules.
 

Detailed Description

Hook handler for the TranslateSandbox.

Author
Eugene Wang'ombe @license GPL-2.0-or-later
Since
2023.12

Definition at line 21 of file TranslateSandboxHookHandler.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler::__construct ( Config $config)

Definition at line 38 of file TranslateSandboxHookHandler.php.

Member Function Documentation

◆ onApiCheckCanExecute()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler::onApiCheckCanExecute ( $module,
$user,
& $message )

Inclusion listing for certain API modules.

See also onUserGetRights. @inheritDoc

Definition at line 92 of file TranslateSandboxHookHandler.php.

◆ onGetPreferences()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler::onGetPreferences ( $user,
& $preferences )

@inheritDoc

Definition at line 79 of file TranslateSandboxHookHandler.php.

◆ onTitleQuickPermissions()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler::onTitleQuickPermissions ( $title,
$user,
$action,
& $errors,
$doExpensiveQueries,
$short )

@inheritDoc

Definition at line 59 of file TranslateSandboxHookHandler.php.

◆ onUserGetRights()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslateSandboxHookHandler::onUserGetRights ( $user,
& $rights )

@inheritDoc

Definition at line 43 of file TranslateSandboxHookHandler.php.


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