Skip to content
Browse files

Merge branch 'MDL-26451_alfresco_repo' of git://github.com/dongsheng/…

…moodle
  • Loading branch information...
2 parents ed9fd13 + b9825e8 commit bca4fa81a86084f2522bc5f6e95ba3c24fdf04f6 @skodak skodak committed Feb 28, 2011
Showing with 13 additions and 1 deletion.
  1. +13 −1 repository/alfresco/lib.php
View
14 repository/alfresco/lib.php
@@ -203,6 +203,18 @@ public function get_file($uuid, $file = '') {
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 .= '<label>Space: </label><br /><select name="space">';
@@ -277,7 +289,7 @@ public static function plugin_init() {
}
}
public function supported_returntypes() {
- return FILE_INTERNAL;
+ return (FILE_INTERNAL | FILE_EXTERNAL);
}
}

0 comments on commit bca4fa8

Please sign in to comment.
Something went wrong with that request. Please try again.