summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/SQLStore/Lookup/ListLookup.php
blob: 5772c8411c6babf582c1bb8a7c414a0b9560f5ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php

namespace SMW\SQLStore\Lookup;

/**
 * A simple interface for fetching a list from either a DB or being used as
 * decorator to cache results
 *
 * @license GNU GPL v2+
 * @since 2.2
 *
 * @author mwjames
 */
interface ListLookup {

	/**
	 * @since 2.2
	 *
	 * @return array
	 */
	public function fetchList();

	/**
	 * @since 2.2
	 *
	 * @return boolean
	 */
	public function isFromCache();

	/**
	 * A unique identifier that can describe a specific lookup instance to
	 * distinguish it from other lookup's of the same list
	 *
	 * @since 2.2
	 *
	 * @return string
	 */
	public function getHash();

	/**
	 * @since 2.2
	 *
	 * @return integer
	 */
	public function getTimestamp();

}