Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (LanguageTargetLinksCache $languageTargetLinksCache) | |
setStore (Store $store) | |
getRedirectTargetFor (Title $title) | |
resetLookupCacheBy (Title $title) | |
pushPageLanguageToLookupCache (Title $title=null, $languageCode) | |
queryLanguageTargetLinks (InterlanguageLink $interlanguageLink, Title $target=null) | |
findPageLanguageForTarget (Title $title) | |
hasSilAnnotationFor (Title $title) | |
findFullListOfReferenceTargetLinks (Title $title) | |
Public Attributes | |
const | NO_LANG = '' |
This class is the most critical component of SIL as it combines the store interface with the cache interface.
Any request either for a target link or language code lookup are channelled through this class in order to make a decision whether to use an existing cache entry or to make a "fresh" query request to the storage back-end.
No other component of SIL should communicate to the store directly and let the lookup class to handle those requests.
GNU GPL v2+
SIL\InterlanguageLinksLookup::__construct | ( | LanguageTargetLinksCache | $languageTargetLinksCache | ) |
LanguageTargetLinksCache | $languageTargetLinksCache |
SIL\InterlanguageLinksLookup::findFullListOfReferenceTargetLinks | ( | Title | $title | ) |
Title | $title |
SIL\InterlanguageLinksLookup::findPageLanguageForTarget | ( | Title | $title | ) |
Title | $title |
SIL\InterlanguageLinksLookup::getRedirectTargetFor | ( | Title | $title | ) |
Title | $title |
SIL\InterlanguageLinksLookup::hasSilAnnotationFor | ( | Title | $title | ) |
Title | $title |
SIL\InterlanguageLinksLookup::pushPageLanguageToLookupCache | ( | Title | $title = null , |
$languageCode | |||
) |
Title | null | $title | |
string | $languageCode |
SIL\InterlanguageLinksLookup::queryLanguageTargetLinks | ( | InterlanguageLink | $interlanguageLink, |
Title | $target = null |
||
) |
SIL\InterlanguageLinksLookup::resetLookupCacheBy | ( | Title | $title | ) |
Title | $title |
SIL\InterlanguageLinksLookup::setStore | ( | Store | $store | ) |
Store | $store |