当前位置: 首页>>代码示例>>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;未经允许,请勿转载。