summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-19 18:45:40 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 08:20:16 +0200
commitb53c4c0db9379e48ab0792cd31d09d8134a8c490 (patch)
treeac4a06d26405a9d1685ef3d4571c7f330ec4794d /lib/public
parenta4ffbc09eced10ecd1482bb9837b40a771e4538b (diff)
downloadnextcloud-server-b53c4c0db9379e48ab0792cd31d09d8134a8c490.tar.gz
nextcloud-server-b53c4c0db9379e48ab0792cd31d09d8134a8c490.zip
Fix template functions
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Template.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/Template.php b/lib/public/Template.php
index 3dcee14d880..edea99f9ef3 100644
--- a/lib/public/Template.php
+++ b/lib/public/Template.php
@@ -48,6 +48,7 @@ namespace OCP;
*
* @see \OCP\IURLGenerator::imagePath
* @deprecated 8.0.0 Use \OCP\Template::image_path() instead
+ * @suppress PhanDeprecatedFunction
*/
function image_path($app, $image) {
return \image_path($app, $image);
@@ -59,6 +60,7 @@ function image_path($app, $image) {
* @param string $mimetype
* @return string to the image of this file type.
* @deprecated 8.0.0 Use \OCP\Template::mimetype_icon() instead
+ * @suppress PhanDeprecatedFunction
*/
function mimetype_icon($mimetype) {
return \mimetype_icon($mimetype);
@@ -69,6 +71,7 @@ function mimetype_icon($mimetype) {
* @param string $path path to file
* @return string to the preview of the image
* @deprecated 8.0.0 Use \OCP\Template::preview_icon() instead
+ * @suppress PhanDeprecatedFunction
*/
function preview_icon($path) {
return \preview_icon($path);
@@ -81,6 +84,7 @@ function preview_icon($path) {
* @param string $token
* @return string link to the preview
* @deprecated 8.0.0 Use \OCP\Template::publicPreview_icon() instead
+ * @suppress PhanDeprecatedFunction
*/
function publicPreview_icon($path, $token) {
return \publicPreview_icon($path, $token);
@@ -92,6 +96,7 @@ function publicPreview_icon($path, $token) {
* @param int $bytes in bytes
* @return string size as string
* @deprecated 8.0.0 Use \OCP\Template::human_file_size() instead
+ * @suppress PhanDeprecatedFunction
*/
function human_file_size($bytes) {
return \human_file_size($bytes);
@@ -105,6 +110,8 @@ function human_file_size($bytes) {
* @return string human readable interpretation of the timestamp
*
* @deprecated 8.0.0 Use \OCP\Template::relative_modified_date() instead
+ * @suppress PhanDeprecatedFunction
+ * @suppress PhanTypeMismatchArgument
*/
function relative_modified_date($timestamp, $dateOnly = false) {
return \relative_modified_date($timestamp, null, $dateOnly);
@@ -116,6 +123,7 @@ function relative_modified_date($timestamp, $dateOnly = false) {
* @param integer $bytes size of a file in byte
* @return string human readable interpretation of a file size
* @deprecated 8.0.0 Use \OCP\Template::human_file_size() instead
+ * @suppress PhanDeprecatedFunction
*/
function simple_file_size($bytes) {
return \human_file_size($bytes);
@@ -129,6 +137,7 @@ function simple_file_size($bytes) {
* @param array $params the parameters
* @return string html options
* @deprecated 8.0.0 Use \OCP\Template::html_select_options() instead
+ * @suppress PhanDeprecatedFunction
*/
function html_select_options($options, $selected, $params=array()) {
return \html_select_options($options, $selected, $params);
@@ -151,6 +160,7 @@ class Template extends \OC_Template {
* @param string $image
* @return string to the image
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
*/
public static function image_path($app, $image) {
return \image_path($app, $image);
@@ -163,6 +173,7 @@ class Template extends \OC_Template {
* @param string $mimetype
* @return string to the image of this file type.
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
*/
public static function mimetype_icon($mimetype) {
return \mimetype_icon($mimetype);
@@ -174,6 +185,7 @@ class Template extends \OC_Template {
* @param string $path path to file
* @return string to the preview of the image
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
*/
public static function preview_icon($path) {
return \preview_icon($path);
@@ -187,6 +199,7 @@ class Template extends \OC_Template {
* @param string $token
* @return string link to the preview
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
*/
public static function publicPreview_icon($path, $token) {
return \publicPreview_icon($path, $token);
@@ -199,6 +212,7 @@ class Template extends \OC_Template {
* @param int $bytes in bytes
* @return string size as string
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
*/
public static function human_file_size($bytes) {
return \human_file_size($bytes);
@@ -211,6 +225,8 @@ class Template extends \OC_Template {
* @param boolean $dateOnly
* @return string human readable interpretation of the timestamp
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
+ * @suppress PhanTypeMismatchArgument
*/
public static function relative_modified_date($timestamp, $dateOnly = false) {
return \relative_modified_date($timestamp, null, $dateOnly);
@@ -224,6 +240,7 @@ class Template extends \OC_Template {
* @param array $params the parameters
* @return string html options
* @since 8.0.0
+ * @suppress PhanDeprecatedFunction
*/
public static function html_select_options($options, $selected, $params=array()) {
return \html_select_options($options, $selected, $params);