]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/FileTag.php
Merge pull request #6515 from annando/connector-posts
[friendica.git] / src / Model / FileTag.php
index 4ba4e3ca7c18299ac9effa73a20882a9a26eb7a5..2ad864c9c4d1fe4cce6db1fa3fa6919a2b9ff48c 100644 (file)
@@ -8,7 +8,6 @@ namespace Friendica\Model;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Database\DBA;
-use Friendica\Model\Item;
 
 /**
  * @brief This class handles FileTag related functions
@@ -134,16 +133,17 @@ class FileTag
         return $list;
     }
 
-    /**
-     * @brief Update file tags in PConfig
-     * 
-     * @param int $uid          Unique Identity.
-     * @param string $file_old  Categories previously associated with an item
-     * @param string $file_new  New list of categories for an item
-     * @param string $type      Optional file type.
-     * 
-     * @return boolean          A value indicating success or failure.
-     */
+       /**
+        * @brief Update file tags in PConfig
+        *
+        * @param int    $uid      Unique Identity.
+        * @param string $file_old Categories previously associated with an item
+        * @param string $file_new New list of categories for an item
+        * @param string $type     Optional file type.
+        *
+        * @return boolean          A value indicating success or failure.
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        */
     public static function updatePconfig($uid, $file_old, $file_new, $type = 'file')
     {
         if (!intval($uid)) {
@@ -220,15 +220,16 @@ class FileTag
         return true;
     }
 
-    /**
-     * @brief Add tag to file
-     * 
-     * @param int $uid      Unique identity.
-     * @param int $item_id  Item identity.
-     * @param string $file  File tag.
-     * 
-     * @return boolean      A value indicating success or failure.
-     */
+       /**
+        * @brief Add tag to file
+        *
+        * @param int    $uid     Unique identity.
+        * @param int    $item_id Item identity.
+        * @param string $file    File tag.
+        *
+        * @return boolean      A value indicating success or failure.
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        */
     public static function saveFile($uid, $item_id, $file)
     {
         if (!intval($uid))
@@ -258,16 +259,17 @@ class FileTag
         return true;
     }
 
-    /**
-     * @brief Remove tag from file
-     * 
-     * @param int $uid      Unique identity.
-     * @param int $item_id  Item identity.
-     * @param string $file  File tag.
-     * @param boolean $cat  Optional value indicating the term type (i.e. Category or File)
-     * 
-     * @return boolean      A value indicating success or failure.
-     */
+       /**
+        * @brief Remove tag from file
+        *
+        * @param int     $uid     Unique identity.
+        * @param int     $item_id Item identity.
+        * @param string  $file    File tag.
+        * @param boolean $cat     Optional value indicating the term type (i.e. Category or File)
+        *
+        * @return boolean      A value indicating success or failure.
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        */
     public static function unsaveFile($uid, $item_id, $file, $cat = false)
     {
         if (!intval($uid))