ENHANCEMENT: make DMSDocument be able to wrap into a RSSFeed

This commit is contained in:
Normann Lou 2012-09-07 10:53:47 +12:00
parent 7ba2a4617a
commit 12fe7d74fd

View File

@ -261,6 +261,14 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
return Controller::join_links(Director::baseURL(),'dmsdocument/'.$this->ID);
}
/**
* The dummy functioin for the {@see:getLink()}
* RSSFeed need the data object to have a function called Link()
*/
function Link(){
return $this->getLink();
}
/**
* Hides the document, so it does not show up when getByPage($myPage) is called
* (without specifying the $showEmbargoed = true parameter). This is similar to expire, except that this method