From: Adam Magness Date: Wed, 31 Oct 2018 11:32:22 +0000 (-0400) Subject: Documentation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02be1d316d777c9ceaea15e3be30b1121a4769cb;p=friendica.git Documentation add proper documentation. --- diff --git a/src/Model/FileTag.php b/src/Model/FileTag.php index d2937a7312..d3baffdd4f 100644 --- a/src/Model/FileTag.php +++ b/src/Model/FileTag.php @@ -22,6 +22,10 @@ class FileTag /** * @brief URL encode <, >, left and right brackets + * + * @param string $s String to be URL encoded. + * + * @return string The URL encoded string. */ public static function encode($s) { @@ -30,6 +34,10 @@ class FileTag /** * @brief URL decode <, >, left and right brackets + * + * @param string $s The URL encoded string to be decoded + * + * @return string The decoded string. */ public static function decode($s) { @@ -38,6 +46,12 @@ class FileTag /** * @brief Query files for tag + * + * @param string $table The table to be queired. + * @param string $s The search term + * @param string $type Optional file type. + * + * @return string Query string. */ public static function fileQuery($table, $s, $type = 'file') { @@ -54,6 +68,10 @@ class FileTag * @brief Get file tags from list * * ex. given music,video return