Semantic MediaWiki and related extensions
Public Member Functions | Protected Attributes | List of all members
Lingo\Backend Class Reference
Inheritance diagram for Lingo\Backend:
Inheritance graph
[legend]

Public Member Functions

 __construct (MessageLog &$messages=null)
 
 getMessageLog ()
 
 getLingoParser ()
 
 setLingoParser (LingoParser $mLingoParser)
 
 useCache ()
 
 next ()
 

Protected Attributes

 $mMessageLog
 
 $mLingoParser
 

Detailed Description

The Lingo class.

Constructor & Destructor Documentation

◆ __construct()

Lingo\Backend::__construct ( MessageLog $messages = null)

Lingo constructor.

Parameters
MessageLog | null$messages

Member Function Documentation

◆ getLingoParser()

Lingo\Backend::getLingoParser ( )
Returns
LingoParser

◆ getMessageLog()

Lingo\Backend::getMessageLog ( )
Returns
MessageLog

◆ next()

Lingo\Backend::next ( )
abstract

This function returns the next element. The element is an array of four strings: Term, Definition (as wikitext), Link (as URL or Article title), Source (unused).

If there is no next element the function returns null.

Returns
array | null

◆ setLingoParser()

Lingo\Backend::setLingoParser ( LingoParser  $mLingoParser)
Parameters
LingoParser$mLingoParser

◆ useCache()

Lingo\Backend::useCache ( )

This function returns true if the backend is cache-enabled.

Actual caching is done by the parser, but to be cache-enabled the backend has to call Lingo::purgeCache when necessary.

Returns
bool

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

About | General disclaimer | Privacy policy