1 | <?php |
||
22 | class LingoBackendAdapter extends Backend { |
||
23 | |||
24 | /* @var ElementsCacheBuilder */ |
||
25 | protected $elementsCacheBuilder = null; |
||
26 | |||
27 | protected $elements = array(); |
||
28 | |||
29 | /** |
||
30 | * @since 1.1 |
||
31 | * |
||
32 | * @param MessageLog|null &$messages |
||
33 | * @param ElementsCacheBuilder|null $elementsCacheBuilder |
||
34 | */ |
||
35 | 2 | public function __construct( MessageLog &$messages = null, ElementsCacheBuilder $elementsCacheBuilder = null ) { |
|
46 | |||
47 | /** |
||
48 | * This function returns the next element. The element is an array of four |
||
49 | * strings: Term, Definition, Link, Source, Style. If there is no next element |
||
50 | * the function returns null. |
||
51 | * |
||
52 | * @since 1.1 |
||
53 | * |
||
54 | * @return array|null the next element or null |
||
55 | */ |
||
56 | 1 | public function next() { |
|
64 | |||
65 | /** |
||
66 | * This backend is cache-enabled so this function returns true. |
||
67 | * |
||
68 | * Actual caching is done by the parser, the backend just calls |
||
69 | * Parser::purgeCache when necessary. |
||
70 | * |
||
71 | * @since 1.1 |
||
72 | * |
||
73 | * @return boolean |
||
74 | */ |
||
75 | 1 | public function useCache() { |
|
78 | |||
79 | } |
||
80 |