|
| $mArticleLines = null |
|
| $mMessageLog |
|
| $mLingoParser |
|
◆ __construct()
Lingo\BasicBackend::__construct |
( |
MessageLog & |
$messages = null | ) |
|
Lingo constructor.
- Parameters
-
◆ collectDictionaryLines()
Lingo\BasicBackend::collectDictionaryLines |
( |
| ) |
|
|
protected |
◆ getApprovedRevisionFromTitle()
Lingo\BasicBackend::getApprovedRevisionFromTitle |
( |
Title |
$title | ) |
|
|
protected |
- Parameters
-
- Returns
- null|Revision
◆ getLatestRevisionFromTitle()
Lingo\BasicBackend::getLatestRevisionFromTitle |
( |
Title |
$title | ) |
|
|
protected |
- Parameters
-
- Returns
- null|Revision
◆ getRawDictionaryContent()
Lingo\BasicBackend::getRawDictionaryContent |
( |
Title |
$dictionaryTitle | ) |
|
|
protected |
- Parameters
-
- Returns
- null|string
◆ getRevisionFromTitle()
Lingo\BasicBackend::getRevisionFromTitle |
( |
Title |
$title | ) |
|
|
protected |
Returns revision of the terms page.
- Parameters
-
- Returns
- null|Revision
◆ getTitleFromText()
Lingo\BasicBackend::getTitleFromText |
( |
|
$dictionaryPage | ) |
|
|
protected |
◆ isValidGlossaryLine()
Lingo\BasicBackend::isValidGlossaryLine |
( |
|
$line | ) |
|
|
protected |
◆ next()
Lingo\BasicBackend::next |
( |
| ) |
|
This function returns the next element. The element is an array of four strings: Term, Definition, Link, Source. For the Lingo Link and Source are set to null. If there is no next element the function returns null.
- Returns
- array | null
- Exceptions
-
◆ processNextGlossaryLine()
Lingo\BasicBackend::processNextGlossaryLine |
( |
|
$line, |
|
|
|
$term, |
|
|
|
$definitions |
|
) |
| |
|
protected |
- Parameters
-
string | $line | |
string | $term | |
| string[] | $definitions |
- Returns
- array
◆ purgeCache()
Lingo\BasicBackend::purgeCache |
( |
WikiPage & |
$wikipage | ) |
|
Initiates the purging of the cache when the Terminology page was saved or purged.
- Parameters
-
- Returns
- Bool
◆ queueDefinitions()
Lingo\BasicBackend::queueDefinitions |
( |
|
$definitions, |
|
|
|
$term |
|
) |
| |
|
protected |
- Parameters
-
| string[] | $definitions |
string | $term | |
- Returns
- array
◆ useCache()
Lingo\BasicBackend::useCache |
( |
| ) |
|
The basic backend is cache-enabled so this function returns true.
Actual caching is done by the parser, the backend just calls Lingo::purgeCache when necessary.
- Returns
- bool
The documentation for this class was generated from the following file: