/**
  * Register our queue handlers
  *
  * @param QueueManager $qm Current queue manager
  *
  * @return boolean hook value
  */
 function onEndInitializeQueueManager($qm)
 {
     $qm->connect('siterem', 'SiteConfirmReminderHandler');
     $qm->connect('uregrem', 'UserConfirmRegReminderHandler');
     $qm->connect('uinvrem', 'UserInviteReminderHandler');
     return true;
 }
 /**
  * Set up queue handlers for outgoing hub pushes
  * @param QueueManager $qm
  * @return boolean hook return
  */
 function onEndInitializeQueueManager(QueueManager $qm)
 {
     // Prepare outgoing distributions after notice save.
     $qm->connect('ostatus', 'OStatusQueueHandler');
     // Outgoing from our internal PuSH hub
     $qm->connect('hubconf', 'HubConfQueueHandler');
     $qm->connect('hubout', 'HubOutQueueHandler');
     // Outgoing Salmon replies (when we don't need a return value)
     $qm->connect('salmon', 'SalmonQueueHandler');
     // Incoming from a foreign PuSH hub
     $qm->connect('pushin', 'PushInQueueHandler');
     return true;
 }
Esempio n. 3
0
 /**
  * Set up queue handlers for outgoing hub pushes
  * @param QueueManager $qm
  * @return boolean hook return
  */
 function onEndInitializeQueueManager(QueueManager $qm)
 {
     // After each notice save, check if there's any repeat mirrors.
     $qm->connect('mirror', 'MirrorQueueHandler');
     return true;
 }
 public function onEndInitializeQueueManager(QueueManager $qm)
 {
     $qm->connect(FeedPoll::QUEUE_CHECK, 'FeedPollQueueHandler');
     return true;
 }
Esempio n. 5
0
 /**
  * Register notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     // If we don't require CLI mode, or if we do and GNUSOCIAL_CLI _is_ set, then connect the transports
     // This check is made mostly because some IM plugins can't deliver to transports unless they
     // have continously running daemons (such as XMPP) and we can't have that over HTTP requests.
     if (!$this->requires_cli || defined('GNUSOCIAL_CLI')) {
         $manager->connect($this->transport . '-in', new ImReceiverQueueHandler($this), 'im');
         $manager->connect($this->transport, new ImQueueHandler($this));
         $manager->connect($this->transport . '-out', new ImSenderQueueHandler($this), 'im');
     }
     return true;
 }
 /**
  * Register Twitter notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     if (self::hasKeys()) {
         // Outgoing notices -> twitter
         $manager->connect('twitter', 'TwitterQueueHandler');
         // Incoming statuses <- twitter
         $manager->connect('tweetin', 'TweetInQueueHandler');
     }
     return true;
 }
 /**
  * Register Twitter notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     if (self::hasKeys()) {
         $manager->connect('twitter', 'TwitterQueueHandler');
     }
     return true;
 }
 /**
  * Register Facebook notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     if (self::hasApplication()) {
         $manager->connect('facebook', 'FacebookQueueHandler');
     }
     return true;
 }
Esempio n. 9
0
 /**
  * Set up queue handlers for outgoing OMB pushes
  *
  * @param QueueManager $qm
  * @return boolean hook return
  */
 function onEndInitializeQueueManager(QueueManager $qm)
 {
     // Prepare outgoing distributions after notice save.
     $qm->connect('omb', 'OmbQueueHandler');
     $qm->connect('profile', 'ProfileQueueHandler');
     return true;
 }
Esempio n. 10
0
 /**
  * Register RSSCloud notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     $manager->connect('rsscloud', 'RSSCloudQueueHandler');
     return true;
 }
Esempio n. 11
0
 /**
  * Register notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     $manager->connect($this->transport . '-in', new ImReceiverQueueHandler($this), 'im');
     $manager->connect($this->transport, new ImQueueHandler($this));
     $manager->connect($this->transport . '-out', new ImSenderQueueHandler($this), 'im');
     return true;
 }
 /**
  * Register our queue handlers
  * 
  * @param QueueManager $qm Current queue manager
  * 
  * @return boolean hook value
  */
 function onEndInitializeQueueManager($qm)
 {
     $qm->connect('sitesum', 'SiteEmailSummaryHandler');
     $qm->connect('usersum', 'UserEmailSummaryHandler');
     return true;
 }
Esempio n. 13
0
 /**
  * Add our queue handler to the queue manager
  *
  * @param QueueManager $qm current queue manager
  *
  * @return boolean hook value
  */
 function onEndInitializeQueueManager($qm)
 {
     $qm->connect('backoff', 'OfflineBackupQueueHandler');
     return true;
 }
Esempio n. 14
0
 /**
  * Add our two queue handlers to the queue manager
  *
  * @param QueueManager $qm current queue manager
  *
  * @return boolean hook value
  */
 function onEndInitializeQueueManager($qm)
 {
     $qm->connect('dlcsback', 'DeliciousBackupImporter');
     $qm->connect('dlcsbkmk', 'DeliciousBookmarkImporter');
     return true;
 }
 /**
  * Set up queue handlers for import processing
  * @param QueueManager $qm
  * @return boolean hook return
  */
 function onEndInitializeQueueManager(QueueManager $qm)
 {
     $qm->connect('yammer', 'YammerQueueHandler');
     return true;
 }