diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/SQLStore/Lookup/ListLookup.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/SQLStore/Lookup/ListLookup.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/SQLStore/Lookup/ListLookup.php b/www/wiki/extensions/SemanticMediaWiki/src/SQLStore/Lookup/ListLookup.php new file mode 100644 index 00000000..5772c841 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/SQLStore/Lookup/ListLookup.php @@ -0,0 +1,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(); + +} |