TODO: Can this be split into two classes? (LexemeRedirectContent, LexemeContent)
More...
TODO: Can this be split into two classes? (LexemeRedirectContent, LexemeContent)
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lexeme\MediaWiki\Content\LexemeContent::__construct |
( |
EntityHolder | $lexemeHolder = null, |
|
|
EntityRedirect | $redirect = null, |
|
|
Title | $redirectTitle = null ) |
- Parameters
-
EntityHolder | null | $lexemeHolder | |
- Exceptions
-
◆ 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 | $maxLength | maximum length of the summary text |
- Returns
- string
◆ isCountable()
Wikibase\Lexeme\MediaWiki\Content\LexemeContent::isCountable |
( |
| $hasLinks = null | ) |
|
- See also
- EntityContent::isCountable
- Parameters
-
- 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 |
◆ $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: