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