#!/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) { return broadcast_twitter($notice); } function finish() { } } 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 TwitterQueueHandler($id); $handler->runOnce();