]> git.wh0rd.org Git - tt-rss.git/commitdiff
docblock for subscribe_to_feed
authorChristian Weiske <cweiske@cweiske.de>
Sun, 7 Nov 2010 12:38:15 +0000 (13:38 +0100)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 8 Nov 2010 20:12:25 +0000 (23:12 +0300)
functions.php

index 2373d54356d2215baedafda7d98d79886aad5735..7f24b4d061cdb7024f33052f81e141aecc80bc86 100644 (file)
                print "</rpc-reply>";
        }
 
+       /**
+        * Subscribes the user to the given feed
+        *
+        * @param resource $link       Database connection
+        * @param string   $url        Feed URL to subscribe to
+        * @param integer  $cat_id     Category ID the feed shall be added to
+        * @param string   $auth_login (optional) Feed username
+        * @param string   $auth_pass  (optional) Feed password
+        *
+        * @return integer Status code:
+        *                 0 - OK, Feed already exists
+        *                 1 - OK, Feed added
+        *                 2 - Invalid URL
+        */
        function subscribe_to_feed($link, $url, $cat_id = 0, 
                        $auth_login = '', $auth_pass = '') {