Exemplo n.º 1
0
<?php

require "init.php";
$script = Script::find_by_code('twitter');
$script->start();
ob_start();
$time = date("H:i:s");
echo "[{$time}] Processing Twitter Queue\r\n\r\n";
Tweet::process($script);
$script = Script::find_by_code('twitter');
$output = ob_get_clean();
$script->finish($output);
 public function process()
 {
     Tweet::process();
     Site::Flash('notice', 'Tweets have been processed');
     Redirect("admin/twitter");
 }