From 1c84e70e961dbb903f094ff0184a316700e747bd Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Wed, 10 Oct 2012 13:44:02 +1300 Subject: [PATCH] BUGFIX: fixing API matching --- code/DMSDocument.php | 19 ++----------------- code/interface/DMSDocumentInterface.php | 16 +--------------- 2 files changed, 3 insertions(+), 32 deletions(-) diff --git a/code/DMSDocument.php b/code/DMSDocument.php index bc6acfb..c7a26b0 100644 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -195,21 +195,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { return $returnArray; } - /** - * Quick way to add multiple tags to a Document. This takes a multidimensional array of category/value pairs. - * The array should look like this: - * $twoDimensionalArray = new array( - * array('fruit','banana'), - * array('fruit','apple') - * ); - * @param $twoDimensionalArray array containing a list of arrays - * @param bool $multiValue Boolean that determines if the category is multi-value or single-value (optional) - * @return null - */ - function addTags($twoDimensionalArray, $multiValue = true) { - // TODO: Implement addTags() method. - } - /** * Removes a tag from the Document. If you only set a category, then all values in that category are deleted. * If you specify both a category and a value, then only that single category/value pair is deleted. @@ -269,7 +254,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { } /** - * The dummy functioin for the {@see:getLink()} + * The dummy function for the {@see:getLink()} * RSSFeed need the data object to have a function called Link() */ function Link(){ @@ -818,7 +803,7 @@ class DMSDocument_Controller extends Controller { if (self::$testMode) return $path; - //if a DMSDocument can be downlaoded and all the permissions/privileges has passed, + //if a DMSDocument can be downloaded and all the permissions/privileges has passed, //its ViewCount should be increased by 1 just before the browser sending the file to front. $doc->trackView(); diff --git a/code/interface/DMSDocumentInterface.php b/code/interface/DMSDocumentInterface.php index f237783..7e0e2ba 100644 --- a/code/interface/DMSDocumentInterface.php +++ b/code/interface/DMSDocumentInterface.php @@ -81,20 +81,6 @@ interface DMSDocumentInterface { */ function getTagsList($category, $value = null); - /** - * Quick way to add multiple tags to a DMSDocument. This takes a multidimensional array of category/value pairs. - * The array should look like this: - * $twoDimensionalArray = new array( - * array('fruit','banana'), - * array('fruit','apple') - * ); - * @abstract - * @param $twoDimensionalArray array containing a list of arrays - * @param bool $multiValue Boolean that determines if the category is multi-value or single-value (optional) - * @return null - */ - function addTags($twoDimensionalArray, $multiValue = true); - /** * Removes a tag from the DMSDocument. If you only set a category, then all values in that category are deleted. * If you specify both a category and a value, then only that single category/value pair is deleted. @@ -150,7 +136,7 @@ interface DMSDocumentInterface { * @return int */ function getAbsoluteSize(); - + /** * Takes a File object or a String (path to a file) and copies it into the DMS, replacing the original document file