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


PHP DBModel::getTeamDetail方法代碼示例

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


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

示例1: go_on

 /**
  * Team statecode += 1
  * @param string team id
  */
 public function go_on($team_id)
 {
     $team = DBModel::getTeamDetail($team_id);
     $cond['id'] = $team['team']['id'];
     $data['statecode'] = (int) $team['team']['statecode'] + 1;
     DBModel::updateDB('cernet_team', $cond, $data);
     foreach ($team['teammate'] as $k => $v) {
         $cond = $_data = array();
         $_data['statecode'] = $data['statecode'];
         $cond['id'] = $v['id'];
         DBModel::updateDB('cernet_user', $cond, $_data);
     }
 }
開發者ID:sysuzjz,項目名稱:soya,代碼行數:17,代碼來源:AdminModel.class.php

示例2: getFullInvitation

 /**
  * Get full invitation details.
  * @param array An entry of cernet_teammate
  */
 public static function getFullInvitation($invitation)
 {
     $info = DBModel::getTeamDetail($invitation['team_id']);
     $res = $invitation;
     $res['leadername'] = $info['leader']['name'];
     $res['teamname'] = $info['team']['name'];
     return $res;
 }
開發者ID:sysuzjz,項目名稱:soya,代碼行數:12,代碼來源:DBModel.class.php

示例3: new_report

 /**
  * Create report page.
  */
 public function new_report()
 {
     eval(USER);
     $team = DBModel::getTeamDetail(DBModel::getTeamByUser(session('userid')));
     $types = DBModel::getByFields('cernet_report_type');
     $this->assign('type', $types);
     $this->assign('team', $team);
     $this->assign("less", __FUNCTION__ . ".less");
     eval(NDSP);
 }
開發者ID:sysuzjz,項目名稱:soya,代碼行數:13,代碼來源:UserAction.class.php

示例4: team

 /**
  * Admin can manage one team here.
  */
 public function team()
 {
     eval(ADMIN);
     try {
         $team_id = xassert(safeget("show"), Error("get"));
         $res = DBModel::getTeamDetail($team_id);
         $tutorlist = DBModel::getByFields('cernet_tutor');
         $types = DBModel::getByFields('cernet_report_type');
         $this->assign('type', $types);
         $this->assign('tutorlist', json_encode($tutorlist));
         $this->assign('teamData', $res);
         $this->assign('mates', $res['teammate']);
         $this->assign('report', $res['report']);
     } catch (Exception $e) {
         throw_exception($e->getMessage());
     }
     $this->assign("less", __FUNCTION__ . ".less");
     eval(NDSP);
 }
開發者ID:sysuzjz,項目名稱:soya,代碼行數:22,代碼來源:AdminAction.class.php


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