本文整理汇总了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();
示例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;
}