本文整理汇总了PHP中Scheduler::retrieve_by_string_fields方法的典型用法代码示例。如果您正苦于以下问题:PHP Scheduler::retrieve_by_string_fields方法的具体用法?PHP Scheduler::retrieve_by_string_fields怎么用?PHP Scheduler::retrieve_by_string_fields使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Scheduler
的用法示例。
在下文中一共展示了Scheduler::retrieve_by_string_fields方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addAODSchedulers
function addAODSchedulers()
{
require_once 'modules/Schedulers/Scheduler.php';
$scheduler = new Scheduler();
$scheduler->retrieve_by_string_fields(array('job' => 'function::aodIndexUnindexed'));
if ($scheduler->id == '') {
$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();
$scheduler->retrieve_by_string_fields(array('job' => 'function::aodOptimiseIndex'));
if ($scheduler->id == '') {
$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: install_aor
function install_aor()
{
require_once 'modules/Schedulers/Scheduler.php';
$scheduler = new Scheduler();
$scheduler->retrieve_by_string_fields(array('job' => 'function::aorRunScheduledReports'));
if ($scheduler->id == '') {
$scheduler->name = "Run Scheduled Reports";
$scheduler->date_time_start = "2005-01-01 11:15:00";
$scheduler->date_time_end = null;
$scheduler->job_interval = "*::*::*::*::*";
$scheduler->job = "function::aorRunScheduledReports";
$scheduler->status = "Active";
$scheduler->catch_up = 1;
$scheduler->save();
}
}
示例3: AddScheduler
function AddScheduler()
{
include_once 'install/install_utils.php';
require_once 'modules/Schedulers/Scheduler.php';
$scheduler = new Scheduler();
$scheduler->retrieve_by_string_fields(array('job' => 'function::processAOW_Workflow'));
if ($scheduler->id == '') {
$scheduler->name = 'Run AOW WorkFlow';
$scheduler->job = 'function::processAOW_Workflow';
$scheduler->date_time_start = create_date(2005, 1, 1) . ' ' . create_time(0, 0, 1);
$scheduler->date_time_end = create_date(2020, 12, 31) . ' ' . create_time(23, 59, 59);
$scheduler->job_interval = '*::*::*::*::*';
$scheduler->status = 'Active';
$scheduler->created_by = '1';
$scheduler->modified_user_id = '1';
$scheduler->catch_up = '0';
$scheduler->save();
}
}