本文整理汇总了PHP中Job::generateAuth方法的典型用法代码示例。如果您正苦于以下问题:PHP Job::generateAuth方法的具体用法?PHP Job::generateAuth怎么用?PHP Job::generateAuth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Job
的用法示例。
在下文中一共展示了Job::generateAuth方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view
function view()
{
Job::installByHandle('index_search');
$this->set('availableJobs', Job::getAvailableList(0));
$this->set('jobList', Job::getList());
$this->set('auth', Job::generateAuth());
}
示例2: view
function view(){
$jobObj = Loader::model("job");
Job::installByHandle('index_search');
$this->set( 'availableJobs', Job::getAvailableList(0) );
$this->set( 'jobListRS', Job::getList() );
$this->set('auth', Job::generateAuth());
}
示例3: on_start
function on_start()
{
parent::on_start();
$this->set('availableJobs', Job::getAvailableList(0));
$this->set('installedJobs', Job::getList());
$this->set('jobSets', JobSet::getList());
$this->set('auth', Job::generateAuth());
}
示例4: defined
<?php
defined('C5_EXECUTE') or die('Access Denied.');
if (ENABLE_JOB_SCHEDULING) {
$c = Page::getCurrentPage();
if ($c instanceof Page && !$c->isAdminArea()) {
// check for non dashboard page
$jobs = Job::getList(true);
$auth = Job::generateAuth();
$url = "";
// jobs
if (count($jobs)) {
foreach ($jobs as $j) {
if ($j->isScheduledForNow()) {
$url = BASE_URL . View::url('/tools/required/jobs/run_single?auth=' . $auth . '&jID=' . $j->getJobID());
break;
}
}
}
// job sets
if (!strlen($url)) {
$jSets = JobSet::getList();
if (is_array($jSets) && count($jSets)) {
foreach ($jSets as $set) {
if ($set->isScheduledForNow()) {
$url = BASE_URL . View::url('/tools/required/jobs?auth=' . $auth . '&jsID=' . $set->getJobSetID());
break;
}
}
}
}