本文整理汇总了PHP中cron::initJobs方法的典型用法代码示例。如果您正苦于以下问题:PHP cron::initJobs方法的具体用法?PHP cron::initJobs怎么用?PHP cron::initJobs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cron
的用法示例。
在下文中一共展示了cron::initJobs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initcronjobs
public function initcronjobs()
{
global $init;
require_once PATH_CORE . '/classes/cron.class.php';
$cObj = new cron($init['apiKey']);
$cObj->initJobs();
set_flash(array('notice' => "Finished initializing cron jobs."));
redirect(url_for($this->name, 'cronjobs'));
}
示例2: cron
// deprecated - $menu.='<li><a href="?p=config&action=reSync&apiKey='.$apiKey.'">Synchronize the database</a> with the remote NewsCloud server</li>';
// 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);