当前位置: 首页>>代码示例>>PHP>>正文


PHP QueueManager::connect方法代码示例

本文整理汇总了PHP中QueueManager::connect方法的典型用法代码示例。如果您正苦于以下问题:PHP QueueManager::connect方法的具体用法?PHP QueueManager::connect怎么用?PHP QueueManager::connect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QueueManager的用法示例。


在下文中一共展示了QueueManager::connect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:bashrc,项目名称:gnusocial-debian,代码行数:14,代码来源:EmailReminderPlugin.php

示例2: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:sukhjindersingh,项目名称:PHInest-Solutions,代码行数:18,代码来源:OStatusPlugin.php

示例3: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:11,代码来源:SubMirrorPlugin.php

示例4: onEndInitializeQueueManager

 public function onEndInitializeQueueManager(QueueManager $qm)
 {
     $qm->connect(FeedPoll::QUEUE_CHECK, 'FeedPollQueueHandler');
     return true;
 }
开发者ID:bashrc,项目名称:gnusocial-debian,代码行数:5,代码来源:FeedPollerPlugin.php

示例5: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:phpsource,项目名称:gnu-social,代码行数:19,代码来源:implugin.php

示例6: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:phpsource,项目名称:gnu-social,代码行数:17,代码来源:TwitterBridgePlugin.php

示例7: onEndInitializeQueueManager

 /**
  * Register Twitter notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     if (self::hasKeys()) {
         $manager->connect('twitter', 'TwitterQueueHandler');
     }
     return true;
 }
开发者ID:stevertiqo,项目名称:StatusNet,代码行数:14,代码来源:TwitterBridgePlugin.php

示例8: onEndInitializeQueueManager

 /**
  * Register Facebook notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     if (self::hasApplication()) {
         $manager->connect('facebook', 'FacebookQueueHandler');
     }
     return true;
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:14,代码来源:FacebookBridgePlugin.php

示例9: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:Grasia,项目名称:bolotweet,代码行数:13,代码来源:OMBPlugin.php

示例10: onEndInitializeQueueManager

 /**
  * Register RSSCloud notice queue handler
  *
  * @param QueueManager $manager
  *
  * @return boolean hook return
  */
 function onEndInitializeQueueManager($manager)
 {
     $manager->connect('rsscloud', 'RSSCloudQueueHandler');
     return true;
 }
开发者ID:Grasia,项目名称:bolotweet,代码行数:12,代码来源:RSSCloudPlugin.php

示例11: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:harriewang,项目名称:InnertieWebsite,代码行数:14,代码来源:implugin.php

示例12: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:13,代码来源:EmailSummaryPlugin.php

示例13: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:Grasia,项目名称:bolotweet,代码行数:12,代码来源:OfflineBackupPlugin.php

示例14: onEndInitializeQueueManager

 /**
  * 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;
 }
开发者ID:phpsource,项目名称:gnu-social,代码行数:13,代码来源:BookmarkPlugin.php

示例15: onEndInitializeQueueManager

 /**
  * Set up queue handlers for import processing
  * @param QueueManager $qm
  * @return boolean hook return
  */
 function onEndInitializeQueueManager(QueueManager $qm)
 {
     $qm->connect('yammer', 'YammerQueueHandler');
     return true;
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:10,代码来源:YammerImportPlugin.php


注:本文中的QueueManager::connect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。