diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-06-26 18:04:18 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-06-26 18:04:22 +0200 |
commit | 39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd (patch) | |
tree | ba9c23cc7c5ace7195639192769b9635b9531b7f /lib/helper.php | |
parent | 9b7efef39d3f7eae45741f0adf0bc0d52945d842 (diff) | |
download | nextcloud-server-39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd.tar.gz nextcloud-server-39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd.zip |
implement server side use of previews
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php index a315c640d1a..e8cc81774dd 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -224,6 +224,17 @@ class OC_Helper { } /** + * @brief get path to preview of file + * @param string $path path + * @return string the url + * + * Returns the path to the preview of the file. + */ + public static function previewIcon($path) { + return self::linkToRoute( 'core_ajax_preview', array('x' => 32, 'y' => 32, 'file' => $path)); + } + + /** * @brief Make a human file size * @param int $bytes file size in bytes * @return string a human readable file size |