. */ /** * @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(INSTALLDIR.'/lib/omb.php'); omb_broadcast_profile($profile); } Event::handle('EndBroadcastProfile', array($profile)); return true; } }