#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/../..')); $shortoptions = 'i::'; $longoptions = array('id::'); $helptext = <<log(LOG_INFO, "INITIALIZE"); $this->notifier = new RSSCloudNotifier(); return true; } function handle_notice($notice) { $profile = $notice->getProfile(); return $this->notifier->notify($profile); } 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 RSSCloudQueueHandler($id); $handler->runOnce();