mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-09-29 12:49:16 +02:00
BUGFIX: fixing API matching
This commit is contained in:
parent
cd864079c7
commit
1c84e70e96
@ -195,21 +195,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
|||||||
return $returnArray;
|
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.
|
* 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.
|
* 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()
|
* RSSFeed need the data object to have a function called Link()
|
||||||
*/
|
*/
|
||||||
function Link(){
|
function Link(){
|
||||||
@ -818,7 +803,7 @@ class DMSDocument_Controller extends Controller {
|
|||||||
|
|
||||||
if (self::$testMode) return $path;
|
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.
|
//its ViewCount should be increased by 1 just before the browser sending the file to front.
|
||||||
$doc->trackView();
|
$doc->trackView();
|
||||||
|
|
||||||
|
@ -81,20 +81,6 @@ interface DMSDocumentInterface {
|
|||||||
*/
|
*/
|
||||||
function getTagsList($category, $value = null);
|
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.
|
* 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.
|
* If you specify both a category and a value, then only that single category/value pair is deleted.
|
||||||
|
Loading…
Reference in New Issue
Block a user