本文整理汇总了PHP中freelancer::GetAllSpecs方法的典型用法代码示例。如果您正苦于以下问题:PHP freelancer::GetAllSpecs方法的具体用法?PHP freelancer::GetAllSpecs怎么用?PHP freelancer::GetAllSpecs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类freelancer
的用法示例。
在下文中一共展示了freelancer::GetAllSpecs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: str_replace
$error_prof .= $obj_prof->UpdateProfDesc($uid, $_POST['prof_id'], str_replace(" ", "", $_POST['prof_cost_from']), str_replace(" ", "", $_POST['prof_cost_to']), str_replace(" ", "", $_POST['prof_cost_hour']), str_replace(" ", "", $_POST['prof_cost_1000']), $_POST['prof_cost_type'], $_POST['prof_cost_type_hour'], $_POST['prof_time_type'], $_POST['prof_time_from'], $_POST['prof_time_to'], $_POST['prof_text'], $errorProfText);
if (!$error_prof) {
$info_prof = "Изменения внесены";
}
$saved_prof_id = intval($_POST['prof_id']);
break;
case "spec_change":
$spec = trim($_POST['spec']);
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$or_spec = professions::GetProfessionOrigin($spec);
$frl = new freelancer();
$frl->spec = $spec;
$frl->spec_orig = $or_spec;
professions::setLastModifiedSpec($uid, $spec);
$error .= $frl->Update($uid, $res);
$_SESSION['specs'] = $frl->GetAllSpecs($uid);
break;
case "save_spec_add":
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
if (professions::UpdateProfsAddSpec($uid, __paramInit('int', NULL, 'oldprof_id'), __paramInit('int', NULL, 'prof_id'), __paramInit('int', NULL, 'paid_id'))) {
$_SESSION['specs'] = freelancer::GetAllSpecs($uid);
header("Location: /users/{$login}/setup/specaddsetup/");
exit;
}
break;
case "portf_choise":
unset($_SESSION['text_spec']);
$params = $_POST['prof'];
if (is_array($params)) {
$firstProf = "#prof" . $params[0];
} else {