aboutsummaryrefslogtreecommitdiffstats
path: root/lib/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-11 19:21:37 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-11 19:21:37 +0200
commit1e8a646f51428d19f565fa702cbb935ca8267adb (patch)
treee3c871cfbb79580379c11c613f8130a5816510ac /lib/preview.php
parent7b2aa5d830efeea7e68a71ddc33bc6e9add1409d (diff)
downloadnextcloud-server-1e8a646f51428d19f565fa702cbb935ca8267adb.tar.gz
nextcloud-server-1e8a646f51428d19f565fa702cbb935ca8267adb.zip
OC\Preview - improve documentation
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-xlib/preview.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/preview.php b/lib/preview.php
index 327a45d8d13..fba1d893e08 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -50,11 +50,12 @@ class Preview {
/**
* @brief check if thumbnail or bigger version of thumbnail of file is cached
- * @param $user userid - if no user is given, OC_User::getUser will be used
- * @param $root path of root
- * @param $file The path to the file where you want a thumbnail from
- * @param $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
- * @param $maxY The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
+ * @param string $user userid - if no user is given, OC_User::getUser will be used
+ * @param string $root path of root
+ * @param string $file The path to the file where you want a thumbnail from
+ * @param int $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
+ * @param int $maxY The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
+ * @param bool $scalingup Disable/Enable upscaling of previews
* @return mixed (bool / string)
* false if thumbnail does not exist
* path to thumbnail if thumbnail exists
@@ -157,6 +158,7 @@ class Preview {
/**
* @brief set the path of the file you want a thumbnail from
+ * @param string $file
* @return $this
*/
public function setFile($file) {
@@ -166,6 +168,7 @@ class Preview {
/**
* @brief set the the max width of the preview
+ * @param int $maxX
* @return $this
*/
public function setMaxX($maxX=1) {
@@ -185,6 +188,7 @@ class Preview {
/**
* @brief set the the max height of the preview
+ * @param int $maxY
* @return $this
*/
public function setMaxY($maxY=1) {
@@ -204,6 +208,7 @@ class Preview {
/**
* @brief set whether or not scalingup is enabled
+ * @param bool $scalingup
* @return $this
*/
public function setScalingup($scalingup) {
@@ -216,7 +221,7 @@ class Preview {
/**
* @brief check if all parameters are valid
- * @return integer
+ * @return bool
*/
public function isFileValid() {
$file = $this->getFile();
@@ -543,6 +548,7 @@ class Preview {
/**
* @brief register a new preview provider to be used
* @param string $provider class name of a Preview_Provider
+ * @param array $options
* @return void
*/
public static function registerProvider($class, $options=array()) {