本文整理汇总了PHP中Subscriber::sendJob方法的典型用法代码示例。如果您正苦于以下问题:PHP Subscriber::sendJob方法的具体用法?PHP Subscriber::sendJob怎么用?PHP Subscriber::sendJob使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Subscriber
的用法示例。
在下文中一共展示了Subscriber::sendJob方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Job
<?php
$j = new Job($_POST['job_id']);
$activator = $j->Activate();
$vali = new Postman();
$vali->MailPostActivatedToUser($j->GetInfo(), BASE_URL_ORIG);
Subscriber::sendJob($_POST['job_id']);
echo 1;
exit;
示例2: escape
// no errors
if (empty($errors)) {
if ($_POST['show_preview'] == 'true') {
$smarty->assign('show_preview', true);
} else {
escape($_POST, array('description'));
$data = array('company' => $company, 'url' => $url, 'title' => $title, 'summary' => $summary, 'city_id' => $city_id, 'category_id' => $category_id, 'type_id' => $type_id, 'description' => $description, 'location_outside_ro_where' => $isCitySelected ? '' : $location_outside_ro_where, 'apply' => '', 'poster_email' => $poster_email, 'apply_online' => $apply_online);
if ($id != 0) {
$job->Edit($data);
} else {
// a job posted by the admin is active from the beginning
$data['is_temp'] = 0;
$data['is_active'] = 1;
$data['spotlight'] = 0;
if ($jobId = $job->Create($data)) {
Subscriber::sendJob($jobId);
}
}
$category = get_category_by_id($category_id);
redirect_to(BASE_URL . URL_JOBS . '/' . $category['var_name'] . '/');
exit;
}
} else {
$smarty->assign('errors', $errors);
}
}
$smarty->assign('job', $jobToEdit);
$smarty->assign('categories', get_categories());
$smarty->assign('types', get_types());
$smarty->assign('cities', get_cities());
$html_title = $translations['jobs']['title_edit'] . ' / ' . SITE_NAME;
示例3: Job
<?php
$job = new Job($id);
$isNewPost = $job->mIsTemp;
$postRequiresModeration = !$job->IsApprovedPosterEmail() && ENABLE_NEW_POST_MODERATION;
if ($isNewPost) {
$job->Publish();
}
$postMan = new Postman();
$jobInfo = $job->GetInfo();
$jobInfo['isNewPost'] = $isNewPost;
$jobInfo['postRequiresModeration'] = $postRequiresModeration;
$postMan->MailPublishToAdmin($jobInfo);
if ($postRequiresModeration) {
if ($isNewPost) {
$postMan->MailPublishPendingToUser($job->mPosterEmail);
}
$html_title = $translations['jobs']['add_success'] . ' / ' . SITE_NAME;
} else {
if (!$job->mIsActive) {
$job->Activate();
}
if ($isNewPost) {
$postMan->MailPublishToUser($jobInfo);
Subscriber::sendJob($id);
}
$html_title = $translations['jobs']['publish_success'] . ' / ' . SITE_NAME;
}
$smarty->assign('postRequiresModeration', $postRequiresModeration);
redirect_to(BASE_URL . 'confirm/' . $job->mId . '/' . ($postRequiresModeration ? 1 : 0) . '/');
exit;