diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-08-06 22:52:58 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-08-06 22:52:58 +0000 |
commit | c03d5932877c15eb673febabda5227df2173fbad (patch) | |
tree | f7fc39d212729c1f2677f67b4ee5eccb1d187f18 /scripts/synctwitterfriends.php | |
parent | 421e33f145de0476088f0b802f0b0a9303372b8a (diff) |
Make TwitterStatusFetcher extend ParallelizingDaemon
Diffstat (limited to 'scripts/synctwitterfriends.php')
-rwxr-xr-x | scripts/synctwitterfriends.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/scripts/synctwitterfriends.php b/scripts/synctwitterfriends.php index 1bd75bac1..37f7842a1 100755 --- a/scripts/synctwitterfriends.php +++ b/scripts/synctwitterfriends.php @@ -54,6 +54,18 @@ require_once INSTALLDIR . '/lib/parallelizingdaemon.php'; class SyncTwitterFriendsDaemon extends ParallelizingDaemon { + /** + * Constructor + * + * @param string $id the name/id of this daemon + * @param int $interval sleep this long before doing everything again + * @param int $max_children maximum number of child processes at a time + * @param boolean $debug debug output flag + * + * @return void + * + **/ + function __construct($id = null, $interval = 60, $max_children = 2, $debug = null) { @@ -71,6 +83,12 @@ class SyncTwitterFriendsDaemon extends ParallelizingDaemon return ('synctwitterfriendsdaemon.' . $this->_id); } + /** + * Find all the Twitter foreign links for users who have requested + * automatically subscribing to their Twitter friends locally. + * + * @return array flinks an array of Foreign_link objects + */ function getObjects() { $flinks = array(); @@ -237,8 +255,6 @@ class SyncTwitterFriendsDaemon extends ParallelizingDaemon } -declare(ticks = 1); - $id = null; $debug = null; |