Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Rdf\NullEntityMentionListener Class Reference

Null implementation of EntityMentionListener. More...

+ Inheritance diagram for Wikibase\Repo\Rdf\NullEntityMentionListener:
+ Collaboration diagram for Wikibase\Repo\Rdf\NullEntityMentionListener:

Public Member Functions

 entityReferenceMentioned (EntityId $id)
 Should be called when an entity reference (an EntityIdValue object) is encountered.
 
 propertyMentioned (PropertyId $id)
 Should be called when a property is used in a PropertySnak.
 
 subEntityMentioned (EntityDocument $entity)
 Should be called when a sub entity is encountered.
 

Detailed Description

Null implementation of EntityMentionListener.

Author
Daniel Kinzler

Member Function Documentation

◆ entityReferenceMentioned()

Wikibase\Repo\Rdf\NullEntityMentionListener::entityReferenceMentioned ( EntityId $id)

Should be called when an entity reference (an EntityIdValue object) is encountered.

Parameters
EntityId$id

Implements Wikibase\Repo\Rdf\EntityMentionListener.

◆ propertyMentioned()

Wikibase\Repo\Rdf\NullEntityMentionListener::propertyMentioned ( PropertyId $id)

Should be called when a property is used in a PropertySnak.

Parameters
PropertyId$id

Implements Wikibase\Repo\Rdf\EntityMentionListener.

◆ subEntityMentioned()

Wikibase\Repo\Rdf\NullEntityMentionListener::subEntityMentioned ( EntityDocument $entity)

Should be called when a sub entity is encountered.

For example, in WikibaseLexeme, when a Form or a Sense is encountered when serializing a Lexeme.

Parameters
EntityDocument$entity

Implements Wikibase\Repo\Rdf\EntityMentionListener.


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