本文整理汇总了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();
}
}