MediaWiki  master
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)
 
 create ()
 
 createForUser (User $user)
 
 createFromLegacyOptions (array $options)
 

Private Attributes

LinkCache $linkCache
 
NamespaceInfo $nsInfo
 
TitleFormatter $titleFormatter
 

Detailed Description

Factory to create LinkRender objects.

Since
1.28

Definition at line 32 of file LinkRendererFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Linker\LinkRendererFactory::__construct ( TitleFormatter  $titleFormatter,
LinkCache  $linkCache,
NamespaceInfo  $nsInfo 
)

Member Function Documentation

◆ create()

MediaWiki\Linker\LinkRendererFactory::create ( )

◆ createForUser()

MediaWiki\Linker\LinkRendererFactory::createForUser ( User  $user)

◆ createFromLegacyOptions()

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

Definition at line 84 of file LinkRendererFactory.php.

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

Member Data Documentation

◆ $linkCache

LinkCache MediaWiki\Linker\LinkRendererFactory::$linkCache
private

◆ $nsInfo

NamespaceInfo MediaWiki\Linker\LinkRendererFactory::$nsInfo
private

◆ $titleFormatter

TitleFormatter MediaWiki\Linker\LinkRendererFactory::$titleFormatter
private

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