]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Queue.php
Added logging
[friendica.git] / src / Model / Queue.php
index 7ffc64bf9e56af603d438882218e805c418c4dfc..355433492ca074b5965fec72c78921b5855f9fba 100644 (file)
@@ -9,12 +9,11 @@ use Friendica\Core\Logger;
 use Friendica\Database\DBA;
 use Friendica\Util\DateTimeFormat;
 
-require_once 'include/dba.php';
-
 class Queue
 {
        /**
         * @param string $id id
+        * @throws \Exception
         */
        public static function updateTime($id)
        {
@@ -39,6 +38,7 @@ class Queue
 
        /**
         * @param string $id id
+        * @throws \Exception
         */
        public static function removeItem($id)
        {
@@ -52,6 +52,7 @@ class Queue
         * @param int $cid Contact id
         *
         * @return bool The communication with this contact has currently problems
+        * @throws \Exception
         */
        public static function wasDelayed($cid)
        {
@@ -80,6 +81,8 @@ class Queue
         * @param string  $network network
         * @param string  $msg     message
         * @param boolean $batch   batch, default false
+        * @param string  $guid
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function add($cid, $network, $msg, $batch = false, $guid = '')
        {