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


PHP Team::getTeam方法代码示例

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


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

示例1: getTeam

 public function getTeam()
 {
     if ($this->teamObj == UNPREPARED) {
         $this->teamObj = Team::getTeam($this->team);
     }
     return $this->teamObj;
 }
开发者ID:rjwalsh88,项目名称:BawkApp,代码行数:7,代码来源:CheckIn.php

示例2: OtherTeams

 /**
  * static function to find players on other teams for any game
  */
 public static function OtherTeams($teamID, $playerID)
 {
     $tournamentName = "2016";
     // @todo Tournament::currentTournamentName();
     $params = array('id' => $playerID);
     $player = CRM_Contact_BAO_Contact::retrieve($params, $defaults);
     $playerName = $player->sort_name;
     $team = Team::getTeam($teamID, $values);
     $team->otherTeamGamePlayerMessages('E', self::$_E, $playerID, $playerName, $tournamentName, $messages);
     $team->otherTeamGamePlayerMessages('O', self::$_O, $playerID, $playerName, $tournamentName, $messages);
     $team->otherTeamGamePlayerMessages('L', self::$_L, $playerID, $playerName, $tournamentName, $messages);
     $team->otherTeamGamePlayerMessages('P', self::$_P, $playerID, $playerName, $tournamentName, $messages);
     $team->otherTeamGamePlayerMessages('M', self::$_M, $playerID, $playerName, $tournamentName, $messages);
     $team->otherTeamGamePlayerMessages('A', self::$_A, $playerID, $playerName, $tournamentName, $messages);
     $team->otherTeamGamePlayerMessages('W', self::$_W, $playerID, $playerName, $tournamentName, $messages);
     return $messages;
 }
开发者ID:agloa,项目名称:tournament,代码行数:20,代码来源:Team.php

示例3: filter_input

 - <?php 
        echo $per->getAddress()->getCity();
        ?>
 / <?php 
        echo $per->getAddress()->getState();
        ?>
        </p>
        <p><label>Observações</label>:  <?php 
        echo $per->getAddress()->getPs();
        ?>
</p>
        <?php 
        break;
    case 'team':
        $cod = filter_input(INPUT_POST, 'cod', FILTER_SANITIZE_NUMBER_INT);
        $team = Team::getTeam('WHERE id_team = ' . $cod);
        ?>
        <p><label>Nome Equipe</label>: <?php 
        echo $team->getName();
        ?>
</p>
        <p><label>Líder</label>: <?php 
        echo $team->getLeader()->getName();
        ?>
</p>
        <p><label>Status</label>: <?php 
        echo $team->getStatus();
        ?>

        <p><label>Integrantes</label>:<br/>
            <?php 
开发者ID:CarolinePaixao,项目名称:SCI,代码行数:31,代码来源:controllerDet.php

示例4: getMissions

 public static function getMissions($where = null)
 {
     $dados = Database::ReadAll("mission", "*", $where);
     if (!$dados) {
         return '';
     }
     foreach ($dados as $dado) {
         $mission = new Mission();
         $mission->setId($dado['ID_MISSION']);
         $mission->setName($dado['NAME_MISSION']);
         $mission->setDateBegin($dado['DATE_INICIAL']);
         $mission->setDateEnd($dado['DATE_END']);
         $mission->setStatus($dado['STATUS']);
         $team = Team::getTeam("WHERE id_team = " . $dado['ID_TEAM']);
         $mission->setTeam($team);
         if (!empty($dado['ID_ADDRESS'])) {
             $address = Address::getAddress("AND id_address = " . $dado['ID_ADDRESS']);
             $mission->setAddress($address);
         }
         if (!empty($dado['ID_CHURCH'])) {
             $church = Church::getChurch("WHERE id_church = " . $dado['ID_CHURCH']);
             $mission->setChurch($church);
         }
         $missions[] = $mission;
     }
     return $missions;
 }
开发者ID:CarolinePaixao,项目名称:SCI,代码行数:27,代码来源:Mission.php

示例5: add_notification

        break;
    case 'remove':
        $user = Person::getPersonBySUNetID($sunetid);
        if ($user) {
            if ($user->getTeam()->getID() == $team_id) {
                $user->makeChanges(array('team' => null));
                $user->doUpdate("Removed user {$sunetid} successfully.");
            } else {
                add_notification("User {$sunetid} is not on this team!");
            }
        } else {
            add_notification("No user with SUNetID {$sunetid} exists!");
        }
        break;
    case 'rename':
        $team = Team::getTeam($team_id);
        $team->makeChanges(array('name' => $team_name));
        $team->doUpdate("Changed name to {$team_name} successfully.");
        break;
}
// VIEW
$page = new UIPage();
// condition on whether user is admin
function team_summary($position, Team $team)
{
    switch ($position) {
        case POSITION_NONE:
            return '';
        case POSITION_ACCOUNT:
        case POSITION_PLAYER:
            return '<b>' . $team->getName() . '</b>';
开发者ID:rjwalsh88,项目名称:BawkApp,代码行数:31,代码来源:teams.php

示例6: getTeam

function getTeam()
{
    $team = new Team();
    echo $team->getTeam();
}
开发者ID:b2simms,项目名称:Oldboys,代码行数:5,代码来源:index.php

示例7: filter_input

<?php

if ($_SESSION['login']['role'] < 2) {
    echo '<h2 style="text-align: center; vertical-align: middle">Página Restrita</h2>';
} else {
    include_once 'class/Team.php';
    $id = filter_input(INPUT_GET, 'cod', FILTER_SANITIZE_NUMBER_INT);
    if (Team::getTeam("WHERE id_team = {$id}")) {
        $team = Team::getTeam("WHERE id_team = {$id}");
    } else {
        echo '<script>window.location = "index.php";</script>';
    }
    ?>
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Alterar Equipe</h1>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="col-md-6 col-md-offset-3">
            <ul class="nav nav-wizard">
                <li class="active" id="1"><a href="#">Dados da Equipe</a></li>
                <li class="disabled" id="2"><a href="#">Finalizar</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="box dark">
开发者ID:CarolinePaixao,项目名称:SCI,代码行数:31,代码来源:formEquipe.php


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