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

Public Member Functions

 __construct (MessageLog &$messages=null, ElementsCacheBuilder $elementsCacheBuilder=null)
 
 next ()
 
 useCache ()
 

Protected Attributes

 $elementsCacheBuilder = null
 
 $elements = array()
 

Detailed Description

GNU GPL v2+

Since
1.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ next()

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

◆ useCache()

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

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

About | General disclaimer | Privacy policy