WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\MediaWiki\Content\LexemeContent Class Reference

TODO: Can this be split into two classes? (LexemeRedirectContent, LexemeContent) More...

+ Inheritance diagram for Wikibase\Lexeme\MediaWiki\Content\LexemeContent:
+ Collaboration diagram for Wikibase\Lexeme\MediaWiki\Content\LexemeContent:

Public Member Functions

 __construct (EntityHolder $lexemeHolder=null, EntityRedirect $redirect=null, Title $redirectTitle=null)
 
 getEntity ()
 
 isCountable ( $hasLinks=null)
 
 getEntityHolder ()
 
 getEntityRedirect ()
 
 getRedirectTarget ()
 
 isValid ()
 
 getEntityPageProperties ()
 
 getTextForSearchIndex ()
 Make text representation of the Lexeme as list of all lemmas and form representations.
 
 getTextForSummary ( $maxLength=250)
 Returns a textual representation of the content suitable for use in edit summaries and log messages.
 

Static Public Member Functions

static newFromRedirect ( $redirect, $title)
 

Public Attributes

const CONTENT_MODEL_ID = 'wikibase-lexeme'
 

Protected Member Functions

 getIgnoreKeysForFilters ()
 

Private Member Functions

 constructAsLexemeContent (EntityHolder $lexemeHolder)
 
 constructAsRedirect (EntityRedirect $redirect, Title $redirectTitle=null)
 

Private Attributes

 $lexemeHolder
 
 $redirect
 
 $redirectTitle
 
 $summaryFormatter
 

Detailed Description

TODO: Can this be split into two classes? (LexemeRedirectContent, LexemeContent)

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::__construct ( EntityHolder $lexemeHolder = null,
EntityRedirect $redirect = null,
Title $redirectTitle = null )
Parameters
EntityHolder | null$lexemeHolder
Exceptions
InvalidArgumentException

Member Function Documentation

◆ constructAsLexemeContent()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::constructAsLexemeContent ( EntityHolder $lexemeHolder)
private

◆ constructAsRedirect()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::constructAsRedirect ( EntityRedirect $redirect,
Title $redirectTitle = null )
private

◆ getEntity()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getEntity ( )
See also
EntityContent::getEntity
Returns
Lexeme

◆ getEntityHolder()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getEntityHolder ( )
See also
EntityContent::getEntityHolder
Returns
EntityHolder|null

◆ getEntityPageProperties()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getEntityPageProperties ( )
See also
EntityContent::getEntityPageProperties

Records the number of statements in the 'wb-claims' key. Counts all statements on the page, including statements of forms and senses.

Returns
array A map from property names to property values.

◆ getEntityRedirect()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getEntityRedirect ( )

◆ getIgnoreKeysForFilters()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getIgnoreKeysForFilters ( )
protected

◆ getRedirectTarget()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getRedirectTarget ( )

◆ getTextForSearchIndex()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getTextForSearchIndex ( )

Make text representation of the Lexeme as list of all lemmas and form representations.

See also
EntityContent::getTextForSearchIndex()

◆ getTextForSummary()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::getTextForSummary ( $maxLength = 250)

Returns a textual representation of the content suitable for use in edit summaries and log messages.

Parameters
int$maxLengthmaximum length of the summary text
Returns
string

◆ isCountable()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::isCountable ( $hasLinks = null)
See also
EntityContent::isCountable
Parameters
bool | null$hasLinks
Returns
bool

◆ isValid()

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::isValid ( )
See also
EntityContent::isValid
Returns
bool

◆ newFromRedirect()

static Wikibase\Lexeme\MediaWiki\Content\LexemeContent::newFromRedirect ( $redirect,
$title )
static

Member Data Documentation

◆ $lexemeHolder

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::$lexemeHolder
private

◆ $redirect

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::$redirect
private

◆ $redirectTitle

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::$redirectTitle
private

◆ $summaryFormatter

Wikibase\Lexeme\MediaWiki\Content\LexemeContent::$summaryFormatter
private

◆ CONTENT_MODEL_ID

const Wikibase\Lexeme\MediaWiki\Content\LexemeContent::CONTENT_MODEL_ID = 'wikibase-lexeme'

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