From 97be98315c20cf3dd3597c91fa60bb20c3144ed4 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Mon, 16 Jul 2012 13:06:35 +1200 Subject: [PATCH] API-CHANGE: initial commit for dms --- _config.php | 0 code/DMSInterface.php | 34 ++++++++++++++++++++++++++ code/DocumentInterface.php | 50 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 _config.php create mode 100644 code/DMSInterface.php create mode 100644 code/DocumentInterface.php diff --git a/_config.php b/_config.php new file mode 100644 index 0000000..e69de29 diff --git a/code/DMSInterface.php b/code/DMSInterface.php new file mode 100644 index 0000000..9040ade --- /dev/null +++ b/code/DMSInterface.php @@ -0,0 +1,34 @@ +Pages()->add($myPage) + * @abstract + * @param $pageObject + * @return mixed + */ + function addPage($pageObject); + function removePage($pageObject); + function getPages(); + + /** + * Can be implemented as a key/value store table (although it is more like category/value, because the same category can occur multiple times) + * @abstract + * @param $category + * @param $value + * @return mixed + */ + function addTag($category, $value, $multiValue = true); + + function addTags($twoDimensionalArray); + function removeTag($category = null, $value = null); + function removeAllTags(); + function getAllTags(); + + function downloadLink(); + + function getVersions(); + + function embargo(); + function embargoUntilDate(); + function clearEmbargo(); + function expire(); + function expireAtDate(); + function clearExpiry(); +} \ No newline at end of file