mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
ENHANCEMENT: make DMSDocument be able to wrap into a RSSFeed
This commit is contained in:
parent
7ba2a4617a
commit
12fe7d74fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user