當前位置: 首頁>>代碼示例>>PHP>>正文


PHP freelancer::webprofGenerateRss方法代碼示例

本文整理匯總了PHP中freelancer::webprofGenerateRss方法的典型用法代碼示例。如果您正苦於以下問題:PHP freelancer::webprofGenerateRss方法的具體用法?PHP freelancer::webprofGenerateRss怎麽用?PHP freelancer::webprofGenerateRss使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在freelancer的用法示例。


在下文中一共展示了freelancer::webprofGenerateRss方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: hh

//------------------------------------------------------------------------------
if (date('H') == 6) {
    $log->TRACE(professions::ReCalcProfessionsCount());
    $hh = new hh();
    $log->TRACE($hh->delOldFilters());
    $log->TRACE($mail->employerHelpInfo());
}
$log->TRACE(professions::PaidSpecsEndingReminder());
// ban
$usr = new users();
$log->TRACE($usr->GetBanTimeout());
//выкидываем неактивных юзеров
$log->TRACE($usr->UpdateInactive());
if (date('H') == 0 || date('H') == 6 || date('H') == 12 || date('H') == 18) {
    // генерация xml для webprof
    $log->TRACE(freelancer::webprofGenerateRss('upload/webprof.xml'));
}
// генерация xml для Яндекс.Работа
$log->TRACE(new_projects::yandexGenerateRss('upload/yandex-office.xml', array(4)));
$log->TRACE(new_projects::yandexGenerateRss('upload/yandex-project.xml', array(1, 2, 7)));
// генерация xml для Jooble.ru, indeed и trovit
$projects_for_xml = new_projects::getProjectsForXml('1 month');
$log->TRACE(new_projects::joobleGenerateRss('upload/jooble.xml', $projects_for_xml));
$log->TRACE(new_projects::indeedGenerateRss('upload/indeed.xml', $projects_for_xml));
$log->TRACE(new_projects::trovitGenerateRss('upload/trovit.xml', $projects_for_xml));
// генерация xml для joobradio
if (date('H') == 4) {
    $log->TRACE(new_projects::jobradioGenerateRss('upload/jobradio.xml'));
    if (users_suspicious_contacts::getResetContacts()) {
        users_suspicious_contacts::resetContacts();
        users_suspicious_contacts::setResetContacts();
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:hourly.php

示例2: switch

<?php

require_once '../classes/stdf.php';
require_once '../classes/projects.php';
require_once '../classes/freelancer.php';
switch ($argv[1]) {
    case 'yandex-office':
        new_projects::yandexGenerateRss(empty($argv[2]) ? 'upload/yandex-office.xml' : $argv[2], array(4));
        break;
    case 'yandex-project':
        new_projects::yandexGenerateRss(empty($argv[2]) ? 'upload/yandex-project.xml' : $argv[2], array(1, 2, 7));
        break;
    case 'joobradio':
        new_projects::jobradioGenerateRss('upload/jobradio.xml');
        break;
    case 'careerjet':
        new_projects::careerjetGenerateRss('upload/careerjet.xml');
        break;
    case 'webprof':
        freelancer::webprofGenerateRss('upload/webprof.xml');
        break;
    case 'jooble':
        new_projects::joobleGenerateRss('upload/jooble.xml');
        break;
    case 'indeed':
        new_projects::indeedGenerateRss('upload/indeed.xml');
        break;
}
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:28,代碼來源:rss.php


注:本文中的freelancer::webprofGenerateRss方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。