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

Private Attributes

LinkCache $linkCache
 
TitleFormatter $titleFormatter
 

Detailed Description

Factory to create LinkRender objects.

Since
1.28

Definition at line 31 of file LinkRendererFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ create()

MediaWiki\Linker\LinkRendererFactory::create ( )

◆ createForUser()

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

Definition at line 63 of file LinkRendererFactory.php.

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

◆ createFromLegacyOptions()

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

Definition at line 74 of file LinkRendererFactory.php.

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

Member Data Documentation

◆ $linkCache

LinkCache MediaWiki\Linker\LinkRendererFactory::$linkCache
private

◆ $titleFormatter

TitleFormatter MediaWiki\Linker\LinkRendererFactory::$titleFormatter
private

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