MediaWiki  1.29.1
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 32 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)

◆ createFromLegacyOptions()

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

Definition at line 75 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: