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

Public Member Functions

 __construct (MessageLog &$messages=null, ElementsCacheBuilder $elementsCacheBuilder=null)
 
 next ()
 
 useCache ()
 
- Public Member Functions inherited from Lingo\Backend
 __construct (MessageLog &$messages=null)
 
 getMessageLog ()
 
 getLingoParser ()
 
 setLingoParser (LingoParser $mLingoParser)
 
 useCache ()
 
 next ()
 

Protected Attributes

 $elementsCacheBuilder = null
 
 $elements = array()
 
- Protected Attributes inherited from Lingo\Backend
 $mMessageLog
 
 $mLingoParser
 

Detailed Description

GNU GPL v2+

Since
1.1
Author
mwjames

Constructor & Destructor Documentation

SG\LingoBackendAdapter::__construct ( MessageLog $messages = null,
ElementsCacheBuilder  $elementsCacheBuilder = null 
)
Since
1.1
Parameters
MessageLog | null&$messages
ElementsCacheBuilder | null$elementsCacheBuilder

Member Function Documentation

SG\LingoBackendAdapter::next ( )

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

Since
1.1
Returns
array|null the next element or null
SG\LingoBackendAdapter::useCache ( )

This backend is cache-enabled so this function returns true.

Actual caching is done by the parser, the backend just calls Parser::purgeCache when necessary.

Since
1.1
Returns
boolean

Member Data Documentation

SG\LingoBackendAdapter::$elements = array()
protected
SG\LingoBackendAdapter::$elementsCacheBuilder = null
protected

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