summaryrefslogtreecommitdiffstats
path: root/lib/public/template.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
commit7644950b48b094bfe5675348aefb7cf5747d325b (patch)
treea1792e21239a86f471da99b454134a5d8533ef77 /lib/public/template.php
parent8653da6c16597959c7bd0f0b202747ff96204575 (diff)
downloadnextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.tar.gz
nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.zip
Add @since tags to all methods in public namespace
* enhance the app development experience - you can look up the method introduction right inside the code without searching via git blame * easier to write apps for multiple versions
Diffstat (limited to 'lib/public/template.php')
-rw-r--r--lib/public/template.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/public/template.php b/lib/public/template.php
index eee5abfc445..be891369869 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -148,6 +148,7 @@ class Template extends \OC_Template {
* @param string $app
* @param string $image
* @return string to the image
+ * @since 8.0.0
*/
public static function image_path($app, $image) {
return \image_path($app, $image);
@@ -159,6 +160,7 @@ class Template extends \OC_Template {
*
* @param string $mimetype
* @return string to the image of this file type.
+ * @since 8.0.0
*/
public static function mimetype_icon($mimetype) {
return \mimetype_icon($mimetype);
@@ -169,6 +171,7 @@ class Template extends \OC_Template {
*
* @param string $path path to file
* @return string to the preview of the image
+ * @since 8.0.0
*/
public static function preview_icon($path) {
return \preview_icon($path);
@@ -181,6 +184,7 @@ class Template extends \OC_Template {
* @param string $path of file
* @param string $token
* @return string link to the preview
+ * @since 8.0.0
*/
public static function publicPreview_icon($path, $token) {
return \publicPreview_icon($path, $token);
@@ -192,18 +196,20 @@ class Template extends \OC_Template {
*
* @param int $bytes in bytes
* @return string size as string
+ * @since 8.0.0
*/
public static function human_file_size($bytes) {
return \human_file_size($bytes);
}
/**
- * Return the relative date in relation to today. Returns something like "last hour" or "two month ago"
- *
- * @param int $timestamp unix timestamp
- * @param boolean $dateOnly
- * @return string human readable interpretation of the timestamp
- */
+ * Return the relative date in relation to today. Returns something like "last hour" or "two month ago"
+ *
+ * @param int $timestamp unix timestamp
+ * @param boolean $dateOnly
+ * @return string human readable interpretation of the timestamp
+ * @since 8.0.0
+ */
public static function relative_modified_date($timestamp, $dateOnly = false) {
return \relative_modified_date($timestamp, null, $dateOnly);
}
@@ -215,6 +221,7 @@ class Template extends \OC_Template {
* @param mixed $selected which one is selected?
* @param array $params the parameters
* @return string html options
+ * @since 8.0.0
*/
public static function html_select_options($options, $selected, $params=array()) {
return \html_select_options($options, $selected, $params);