function myinviter_executeJob($job) { $ret = myinviter_grabEmails($job['domain'], $job['provider'], $GLOBALS['myinviter']->getConfig('autocrawlfolder'), $job['start']); $log = "Job Executed: " . Xmf_Debug::dump($job, false, false); $GLOBALS['myinviter']->addLog($log); $log = "Job Results: " . Xmf_Debug::dump($ret, false, false); $GLOBALS['myinviter']->addLog($log); if (xoops_isActiveModule('log')) { $log = Xmf_Debug::dump($job, false) . Xmf_Debug::dump($ret, false); Xmf_Module_Helper::getInstance('log')->getHandler('item')->addItem('myinviter', 'autocrawler', $log); } $job['lasttime'] = time(); $job['start']++; if ($job['start'] == $job['npages']) { $job['start'] = 0; } return $job; }
function __toString() { return Xmf_Debug::dump($this, false); }