. */ /** * @package QueueHandler * @maintainer Brion Vibber */ class ProfileQueueHandler extends QueueHandler { function transport() { return 'profile'; } function handle($profile) { if (!($profile instanceof Profile)) { common_log(LOG_ERR, "Got a bogus profile, not broadcasting"); return true; } if (Event::handle('StartBroadcastProfile', array($profile))) { require_once(dirname(__FILE__) . '/omb.php'); try { omb_broadcast_profile($profile); } catch (Exception $e) { common_log(LOG_ERR, "Failed sending OMB profiles: " . $e->getMessage()); } } Event::handle('EndBroadcastProfile', array($profile)); return true; } }