Semantic MediaWiki and related extensions
Public Member Functions | Protected Attributes | List of all members
Lingo\Backend Class Reference

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

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

Lingo constructor.

Parameters
MessageLog | null$messages

Member Function Documentation

Lingo\Backend::getLingoParser ( )
Returns
LingoParser
Lingo\Backend::getMessageLog ( )
Returns
MessageLog
Lingo\Backend::next ( )
abstract

This function returns the next element. The element is an array of four strings: Term, Definition, Link, Source. If there is no next element the function returns null.

Returns
Element | null
Lingo\Backend::setLingoParser ( LingoParser  $mLingoParser)
Parameters
LingoParser$mLingoParser
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
boolean

Member Data Documentation

Lingo\Backend::$mLingoParser
protected
Lingo\Backend::$mMessageLog
protected

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