From b9825e8e298567298745ac19236e8fb561d15934 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Thu, 24 Feb 2011 10:56:30 +0800 Subject: [PATCH] REPOSITORY MDL-23951 alfresco repository plugin supports returning external links --- repository/alfresco/lib.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/repository/alfresco/lib.php b/repository/alfresco/lib.php index 55cc4002671..02ac7174a9e 100755 --- a/repository/alfresco/lib.php +++ b/repository/alfresco/lib.php @@ -203,6 +203,18 @@ class repository_alfresco extends repository { return array('path'=>$path, 'url'=>$url); } + /** + * Return file URL + * + * @param string $url the url of file + * @return string + */ + public function get_link($uuid) { + $node = $this->user_session->getNode($this->store, $uuid); + $url = $this->get_url($node); + return $url; + } + public function print_search() { $str = parent::print_search(); $str .= '