MediaWiki REL1_35
MediaWiki\Linker\LinkRendererFactory Class Reference

Factory to create LinkRender objects. More...

Collaboration diagram for MediaWiki\Linker\LinkRendererFactory:

Public Member Functions

 __construct (TitleFormatter $titleFormatter, LinkCache $linkCache, NamespaceInfo $nsInfo, SpecialPageFactory $specialPageFactory, HookContainer $hookContainer)
 
 create ()
 
 createForUser (User $user)
 
 createFromLegacyOptions (array $options)
 

Private Attributes

HookContainer $hookContainer
 
LinkCache $linkCache
 
NamespaceInfo $nsInfo
 
SpecialPageFactory $specialPageFactory
 
TitleFormatter $titleFormatter
 

Detailed Description

Factory to create LinkRender objects.

Since
1.28

Definition at line 34 of file LinkRendererFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ create()

MediaWiki\Linker\LinkRendererFactory::create ( )

◆ createForUser()

MediaWiki\Linker\LinkRendererFactory::createForUser ( User  $user)
Parameters
User$user
Returns
LinkRenderer

Definition at line 97 of file LinkRendererFactory.php.

References MediaWiki\Linker\LinkRendererFactory\create(), and User\getStubThreshold().

◆ createFromLegacyOptions()

MediaWiki\Linker\LinkRendererFactory::createFromLegacyOptions ( array  $options)
Parameters
array$options
Returns
LinkRenderer

Definition at line 108 of file LinkRendererFactory.php.

References MediaWiki\Linker\LinkRendererFactory\create(), PROTO_HTTP, and PROTO_HTTPS.

Member Data Documentation

◆ $hookContainer

HookContainer MediaWiki\Linker\LinkRendererFactory::$hookContainer
private

◆ $linkCache

LinkCache MediaWiki\Linker\LinkRendererFactory::$linkCache
private

◆ $nsInfo

NamespaceInfo MediaWiki\Linker\LinkRendererFactory::$nsInfo
private

◆ $specialPageFactory

SpecialPageFactory MediaWiki\Linker\LinkRendererFactory::$specialPageFactory
private

◆ $titleFormatter

TitleFormatter MediaWiki\Linker\LinkRendererFactory::$titleFormatter
private

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