当前位置: 首页>>代码示例>>PHP>>正文


PHP Subscriber::sendJob方法代码示例

本文整理汇总了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;
开发者ID:zeamxie,项目名称:jobberbase,代码行数:9,代码来源:page_activate.php

示例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;
开发者ID:zeamxie,项目名称:jobberbase,代码行数:31,代码来源:page_edit_post.php

示例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;
开发者ID:zeamxie,项目名称:jobberbase,代码行数:31,代码来源:page_publish.php


注:本文中的Subscriber::sendJob方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。