Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4099449
ParserOutputLinkTypes.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ParserOutputLinkTypes.php
View Options
<?php
/**
* Registry of flags used with ParserOutput::{getLinkList,appendLink}()
* within MediaWiki core.
*
* @license GPL-2.0-or-later
* @since 1.43
*
* @file
* @ingroup Parser
*/
namespace
MediaWiki\Parser
;
/**
* Registry of flags used with ParserOutput::{getLinkList,appendLink}()
* within MediaWiki core.
*
* All link types used should be defined in this class.
*
* @package MediaWiki\Parser
*/
enum
ParserOutputLinkTypes
:
string
{
/**
* Category links
* @see ParserOutput::addCategory
* @see ParserOutput::getCategoryMap
* @see ParserOutput::getCategoryNames
*/
case
CATEGORY
=
'category'
;
/**
* Interwiki links
* @see ParserOutput::addInterwikiLink
*/
case
INTERWIKI
=
'interwiki'
;
/**
* Language links
* @see ParserOutput::addLanguageLink
* @see ParserOutput::getLanguageLinks
*/
case
LANGUAGE
=
'language'
;
/**
* @var string Local links
* @see ParserOutput::addLink
* @see ParserOutput::getLinks
*/
case
LOCAL
=
'local'
;
/**
* Links to media
* @see ParserOutput::addImage
* @see ParserOutput::getImages
* @see ParserOutput::getFileSearchOptions
*/
case
MEDIA
=
'media'
;
/**
* Links to special pages
* @see ParserOutput::addLink
* @see ParserOutput::getLinksSpecial
*/
case
SPECIAL
=
'special'
;
/**
* Links to templates
* @see ParserOutput::addTemplate
* @see ParserOutput::getTemplates
* @see ParserOutput::getTemplateIds
*/
case
TEMPLATE
=
'template'
;
/**
* #ifexist references
* @see ParserOutput::addExistenceDependency
*/
case
EXISTENCE
=
'existence'
;
/**
* Return the ParserOutputLinkTypes, as an array of string flag values.
* @return list<string>
*/
public
static
function
values
():
array
{
return
array_column
(
self
::
cases
(),
'value'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 15:52 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4e/12/9bd30424a366fa7ef260815441f4
Default Alt Text
ParserOutputLinkTypes.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment