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


PHP professions::UpdatePortfChoise方法代码示例

本文整理汇总了PHP中professions::UpdatePortfChoise方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::UpdatePortfChoise方法的具体用法?PHP professions::UpdatePortfChoise怎么用?PHP professions::UpdatePortfChoise使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在professions的用法示例。


在下文中一共展示了professions::UpdatePortfChoise方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: unset

     break;
 case "portf_choise":
     unset($_SESSION['text_spec']);
     $params = $_POST['prof'];
     if (is_array($params)) {
         $firstProf = "#prof" . $params[0];
     } else {
         $firstProf = "";
     }
     if (!($params && is_array($params))) {
         $params = array(-3);
     }
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
     $prof = new professions();
     if ($params && is_array($params)) {
         $error .= $prof->UpdatePortfChoise($uid, $params);
     }
     unset($prof);
     header_location_exit("/users/{$login}");
     break;
 case "portf_change":
     ini_set('memory_limit', '200M');
     if ($_POST['is_video'] === '1') {
         // Добавление видео
         // Удаляем повторные пробелы.
         //$name = substr(strip_tags(trim($_POST['v_pname'])),0,80);
         $name = __paramInit('html', null, 'v_pname', '', 80, true);
         if (!$name) {
             $name = '';
         }
         $sm_img = new CFile($_FILES['v_sm_img']);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例2: transferUserInformation

 /**
  * Обновляем данные пользователя введенные в шаге портфолио
  * 
  * @param array $data Данные пользователя
  */
 public function transferUserInformation($data)
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/freelancer.php";
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
     $frl = new freelancer();
     if ($data['resume'] > 0) {
         $dir = "users/" . substr($this->user->login, 0, 2) . "/" . $this->user->login . "/resume/";
         $table = 'file';
         $files = array(array('id' => $data['resume']));
         $resume = $this->transferFiles($files, $table, $dir);
     }
     $frl->exp = $data['exp'];
     $frl->cost_hour = $data['cost_hour'];
     $frl->cost_month = $data['cost_month'];
     $frl->cost_type_hour = $data['cost_type_hour'];
     $frl->cost_type_month = $data['cost_type_month'];
     $frl->spec_text = $data['info'];
     $frl->in_office = $data['in_office'];
     $frl->spec = $data['spec'];
     $frl->spec_orig = $data['spec_orig'];
     $frl->resume_file = $resume[0]['fname'];
     $error_db = $frl->Update(wizard::getUserIDReg(), $res);
     $prof = new professions();
     if ($data['spec_orig'] > 0) {
         $error_db = $prof->UpdatePortfChoise(wizard::getUserIDReg(), array($data['spec_orig']));
     }
     // Если нет ошибок очищаем таблицу
     if ($error_db) {
         $this->log->writeln("Error transfer data user content - user (" . wizard::getUserIDReg() . "|" . $this->getWizardUserID() . ") - Error: {$error_db}");
     } else {
         $this->_db->query("DELETE FROM wizard_fields WHERE id = ? AND wiz_uid = ?", $field['id'], $this->getWizardUserID());
     }
     return $error_db;
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:39,代码来源:step_freelancer.php


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