]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/User.php
Fix PHPDoc comments project-wide
[friendica.git] / src / Model / User.php
index 602ba9b33f545aa230af6aa74d0e01fa22996400..23ba7e64d8fbd05838862c0d806f8145a51c79a0 100644 (file)
@@ -34,6 +34,7 @@ class User
         *
         * @param  integer $uid
         * @return boolean
+        * @throws Exception
         */
        public static function exists($uid)
        {
@@ -43,6 +44,7 @@ class User
        /**
         * @param  integer       $uid
         * @return array|boolean User record if it exists, false otherwise
+        * @throws Exception
         */
        public static function getById($uid)
        {
@@ -55,6 +57,7 @@ class User
         * @param string $url
         *
         * @return integer user id
+        * @throws Exception
         */
        public static function getIdForURL($url)
        {
@@ -71,6 +74,7 @@ class User
         *
         * @param int $uid
         * @return boolean|array
+        * @throws Exception
         */
        public static function getOwnerDataById($uid) {
                $r = DBA::fetchFirst("SELECT
@@ -115,6 +119,7 @@ class User
         *
         * @param int $nick
         * @return boolean|array
+        * @throws Exception
         */
        public static function getOwnerDataByNick($nick)
        {
@@ -134,6 +139,7 @@ class User
         * @param string $network network name
         *
         * @return int group id
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function getDefaultGroup($uid, $network = '')
        {
@@ -364,6 +370,7 @@ class User
         * @param int    $uid
         * @param string $pasword_hashed
         * @return bool
+        * @throws Exception
         */
        private static function updatePasswordHashed($uid, $pasword_hashed)
        {
@@ -385,6 +392,7 @@ class User
         *
         * @param string $nickname The nickname that should be checked
         * @return boolean True is the nickname is blocked on the node
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function isNicknameBlocked($nickname)
        {
@@ -422,6 +430,7 @@ class User
         * @return array
         * @throws \ErrorException
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        * @throws \ImagickException
         * @throws Exception
         */
        public static function create(array $data)
@@ -807,7 +816,8 @@ class User
 
        /**
         * @param object $uid user to remove
-        * @return void
+        * @return bool
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function remove($uid)
        {
@@ -848,18 +858,19 @@ class User
         * @return array All identities for this user
         *
         * Example for a return:
-        *      [
-        *              [
-        *                      'uid' => 1,
-        *                      'username' => 'maxmuster',
-        *                      'nickname' => 'Max Mustermann'
-        *              ],
-        *              [
-        *                      'uid' => 2,
-        *                      'username' => 'johndoe',
-        *                      'nickname' => 'John Doe'
-        *              ]
-        *      ]
+        *    [
+        *        [
+        *            'uid' => 1,
+        *            'username' => 'maxmuster',
+        *            'nickname' => 'Max Mustermann'
+        *        ],
+        *        [
+        *            'uid' => 2,
+        *            'username' => 'johndoe',
+        *            'nickname' => 'John Doe'
+        *        ]
+        *    ]
+        * @throws Exception
         */
        public static function identities($uid)
        {