本文整理汇总了PHP中professions::getPaidSpecs方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::getPaidSpecs方法的具体用法?PHP professions::getPaidSpecs怎么用?PHP professions::getPaidSpecs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::getPaidSpecs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: op_codes
<?php
/**
* Устарелый шаблон с тарифами ПРО
*/
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/freelancer.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects_offers_answers.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/op_codes.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/rating.php";
if ($uid) {
$op_codes = new op_codes();
$opcodes = $op_codes->getCodes('80,16,65');
if ($paid_specs = professions::getPaidSpecs($uid)) {
$paid_spec_cnt = count($paid_specs);
}
$free_spec_cnt = is_pro() ? 5 : 1;
$spec_cnt = $paid_spec_cnt + $free_spec_cnt;
$paid_spec_price = $opcodes[professions::OP_PAID_SPEC]['sum'] * $paid_spec_cnt;
$poa = new projects_offers_answers();
$poa->GetInfo($uid);
$poa_codes = $poa->GetOpCodes();
$user = new freelancer();
// Изменяем авто продление PRO, если нужно
if (strtolower($_GET['pro_auto_prolong']) == 'on') {
$user->setPROAutoProlong('on', $uid);
}
if (strtolower($_GET['pro_auto_prolong']) == 'off') {
$user->setPROAutoProlong('off', $uid);
}
$user->GetUser($_SESSION['login']);