Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Specials\SpecialRedirectEntity Class Reference

Special page for creating redirects between entities. More...

+ Inheritance diagram for Wikibase\Repo\Specials\SpecialRedirectEntity:
+ Collaboration diagram for Wikibase\Repo\Specials\SpecialRedirectEntity:

Public Member Functions

 __construct (EntityIdParser $idParser, ExceptionLocalizer $exceptionLocalizer, TokenCheckInteractor $tokenCheck, ItemRedirectCreationInteractor $interactor)
 
 execute ( $subPage)
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 __construct ( $name='', $restriction='', $listed=true)
 
 getDescription ()
 
 setHeaders ()
 

Static Public Member Functions

static factory (EntityIdParser $entityIdParser, ExceptionLocalizer $exceptionLocalizer)
 

Protected Member Functions

 showExceptionMessage (Exception $ex)
 
 createForm ()
 Creates the HTML form for redirecting an entity. More...
 
 getFormElements ()
 
- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 getGroupName ()
 
 checkBlocked ()
 Checks if user is blocked, and if blocked throws a UserBlocked. More...
 
 showErrorHTML ( $error)
 

Private Member Functions

 getEntityIdParam ( $name)
 
 getTextParam ( $name)
 
 redirectEntity (EntityId $fromId, EntityId $toId)
 

Private Attributes

 $idParser
 
 $exceptionLocalizer
 
 $interactor
 
 $tokenCheck
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

Detailed Description

Special page for creating redirects between entities.

Author
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialRedirectEntity::__construct ( EntityIdParser  $idParser,
ExceptionLocalizer  $exceptionLocalizer,
TokenCheckInteractor  $tokenCheck,
ItemRedirectCreationInteractor  $interactor 
)

Member Function Documentation

◆ createForm()

Wikibase\Repo\Specials\SpecialRedirectEntity::createForm ( )
protected

Creates the HTML form for redirecting an entity.

◆ execute()

Wikibase\Repo\Specials\SpecialRedirectEntity::execute (   $subPage)
See also
SpecialWikibasePage::execute
Parameters
string | null$subPage

Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.

◆ factory()

static Wikibase\Repo\Specials\SpecialRedirectEntity::factory ( EntityIdParser  $entityIdParser,
ExceptionLocalizer  $exceptionLocalizer 
)
static

◆ getEntityIdParam()

Wikibase\Repo\Specials\SpecialRedirectEntity::getEntityIdParam (   $name)
private
Parameters
string$name
Returns
EntityId|null
Exceptions
UserInputException

◆ getFormElements()

Wikibase\Repo\Specials\SpecialRedirectEntity::getFormElements ( )
protected
Returns
array[]

◆ getTextParam()

Wikibase\Repo\Specials\SpecialRedirectEntity::getTextParam (   $name)
private

◆ redirectEntity()

Wikibase\Repo\Specials\SpecialRedirectEntity::redirectEntity ( EntityId  $fromId,
EntityId  $toId 
)
private

◆ showExceptionMessage()

Wikibase\Repo\Specials\SpecialRedirectEntity::showExceptionMessage ( Exception  $ex)
protected

Member Data Documentation

◆ $exceptionLocalizer

Wikibase\Repo\Specials\SpecialRedirectEntity::$exceptionLocalizer
private

◆ $idParser

Wikibase\Repo\Specials\SpecialRedirectEntity::$idParser
private

◆ $interactor

Wikibase\Repo\Specials\SpecialRedirectEntity::$interactor
private

◆ $tokenCheck

Wikibase\Repo\Specials\SpecialRedirectEntity::$tokenCheck
private

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