本文整理匯總了PHP中Scheduler::get_full_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP Scheduler::get_full_list方法的具體用法?PHP Scheduler::get_full_list怎麽用?PHP Scheduler::get_full_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Scheduler
的用法示例。
在下文中一共展示了Scheduler::get_full_list方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addAODSchedulers
function addAODSchedulers()
{
require_once 'modules/Schedulers/Scheduler.php';
$scheduler = new Scheduler();
if (!count($scheduler->get_full_list('', 'job = "function::aodIndexUnindexed"'))) {
$scheduler->name = "Perform Lucene Index";
$scheduler->date_time_start = "2005-01-01 11:15:00";
$scheduler->date_time_end = null;
$scheduler->job_interval = "0::0::*::*::*";
$scheduler->job = "function::aodIndexUnindexed";
$scheduler->status = "Active";
$scheduler->catch_up = 1;
$scheduler->save();
}
$scheduler = new Scheduler();
if (!count($scheduler->get_full_list('', 'job = "function::aodOptimiseIndex"'))) {
$scheduler->name = "Optimise AOD Index";
$scheduler->date_time_start = "2005-01-01 11:15:00";
$scheduler->date_time_end = null;
$scheduler->job_interval = "0::*/3::*::*::*";
$scheduler->job = "function::aodOptimiseIndex";
$scheduler->status = "Active";
$scheduler->catch_up = 1;
$scheduler->save();
}
}
示例2: updateScheduler
function updateScheduler()
{
require_once 'modules/Schedulers/Scheduler.php';
$scheduler = new Scheduler();
$schedulers = $scheduler->get_full_list('', 'job = "function::pollMonitoredInboxesCustomAOP"');
foreach ($schedulers as $scheduler) {
$scheduler->job = "function::pollMonitoredInboxesAOP";
$scheduler->save();
}
}
示例3: updateScheduler
function updateScheduler()
{
require_once 'modules/Schedulers/Scheduler.php';
$scheduler = new Scheduler();
if (count($scheduler->get_full_list('', "job = 'function::pollMonitoredInboxesAOP'"))) {
return;
}
$scheduler->name = "AOP Check Inbound Mailboxes";
$scheduler->date_time_start = "2005-01-01 11:15:00";
$scheduler->date_time_end = "2020-12-31 00:00:00";
$scheduler->job_interval = "*/1::*::*::*::*";
$scheduler->job = "function::pollMonitoredInboxesAOP";
$scheduler->status = "Active";
$scheduler->catch_up = 0;
$scheduler->save();
$oldSchedules = $scheduler->get_full_list('', "job = 'function::pollMonitoredInboxes'");
foreach ($oldSchedules as $oldSchedule) {
$oldSchedule->status = "Inactive";
$oldSchedule->save();
}
}