本文整理匯總了PHP中cron::resetJobs方法的典型用法代碼示例。如果您正苦於以下問題:PHP cron::resetJobs方法的具體用法?PHP cron::resetJobs怎麽用?PHP cron::resetJobs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cron
的用法示例。
在下文中一共展示了cron::resetJobs方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: cron
// deprecated - $menu.='<li>Hit p=config, action=cleanupUser with userid param set to userid to clean out their user records</li>';
// deprecated - $menu.='<li><a href="?p=config&action=rewardBetaTesters&apiKey='.$apiKey.'">Submits beta tester\'s emails for Beta Test HotDish challenge (1-time)</a></li>';
//$menu.='<li><a href="?p=config&action=resetDB&apiKey='.$apiKey.'">Reset the database</a> - erases everything</li>';
//$menu.='<li><a href="?p=config&action=resetLog&apiKey='.$apiKey.'">Reset the log</a> - erases all user activities</li>';
switch ($action) {
default:
break;
case 'initDB':
echo 'Scroll down to the <a href="#menu">installation menu</a> when complete<br /><br />';
// override default time limit
set_time_limit(300);
include_once PATH_CORE . "utilities/initDatabase.php";
require_once PATH_CORE . '/classes/cron.class.php';
$cObj = new cron($init['apiKey']);
$cObj->initJobs();
$cObj->resetJobs();
break;
case 'addTestData':
include_once PATH_CORE . "utilities/populateTestData.php";
break;
case 'removeTestData':
include_once PATH_CORE . "utilities/removeTestData.php";
break;
case 'uploadSettings':
echo 'Uploading settings in SystemStatus table up to Facebook Developer application<br />';
require_once PATH_CORE . '/classes/systemStatus.class.php';
$ssObj = new systemStatus();
$propList = $ssObj->loadFacebookProperties();
echo 'These settings will be uploaded:<br />';
print_r($propList);
echo '<br />';