MediaWiki  1.28.0
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

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

Member Function Documentation

MediaWiki\Linker\LinkRendererFactory::create ( )
MediaWiki\Linker\LinkRendererFactory::createForUser ( User  $user)
MediaWiki\Linker\LinkRendererFactory::createFromLegacyOptions ( array  $options)
Parameters
array$options
Returns
LinkRenderer

Definition at line 75 of file LinkRendererFactory.php.

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

Member Data Documentation

LinkCache MediaWiki\Linker\LinkRendererFactory::$linkCache
private
TitleFormatter MediaWiki\Linker\LinkRendererFactory::$titleFormatter
private

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