#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $shortoptions = 'i::'; $longoptions = array('id::'); $helptext = <<log(LOG_INFO, "INITIALIZE"); return true; } function handle_notice($notice) { if ($this->is_remote($notice)) { $this->log(LOG_DEBUG, 'Ignoring remote notice ' . $notice->id); return true; } else { return omb_broadcast_remote_subscribers($notice); } } function finish() { } function is_remote($notice) { $user = User::staticGet($notice->profile_id); return is_null($user); } } if (have_option('i')) { $id = get_option_value('i'); } else if (have_option('--id')) { $id = get_option_value('--id'); } else if (count($args) > 0) { $id = $args[0]; } else { $id = null; } $handler = new OmbQueueHandler($id); $handler->runOnce();