本文整理汇总了PHP中interPool::getPlayerPtsNHL方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getPlayerPtsNHL方法的具体用法?PHP interPool::getPlayerPtsNHL怎么用?PHP interPool::getPlayerPtsNHL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getPlayerPtsNHL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$team_abbr = $valueA[5];
$total_pts = $valueA[6];
$pj_pool = $valueA[7];
$trading_block = $valueA[8];
$team_logo = $valueA[9];
$team_logo2 = $valueA[10];
$url_photo = $valueA[11];
$id_forecaster = $valueA[12];
$salaire_unformatted = $valueA[13];
$birthday = $valueA[14];
$salaire = number_format($salaire_unformatted, 0, ".", ",");
$logo2show = "color";
$style_color = "";
// parties nhl et pts nhl du joueur (pas du rang...)
$pj_nhl = $pool->getPartiesNHLJoueur($id_pool, $id_saison, $id_player);
$pts_nhl = $pool->getPlayerPtsNHL($id_player, $date_debut_saison, $id_saison, $id_pool);
// get pj restantes pour le joueur si nécessaire
if ($salary_cap_enabled == "Y") {
$pj_restantes = $pool->getPlayerPJRestantes($id_pool, $id_saison, $id_player, $periode);
}
// âge du joueur
if ($pos == "TM") {
$age = "";
} elseif ($birthday != "0000-00-00") {
$_mydate = Datetime::createFromFormat('Y-m-d', $birthday, $pool->timeZone);
$age = $_mydate->diff($pool->todayDate)->y;
} else {
$age = "???";
}
if ($gerant_logged == $gerant) {
$show_button = "<img src=\"/images/plus_button.png\" border=0 id=\"plus-button_{$id_player}_{$pj_pool}_{$total_pts}\" class=\"plus_button\" />";
示例2: foreach
if (count($playersPropGerant_TM) == count($playersPropAdv_TM) && count($playersPropGerant_TM) > 0) {
foreach ($playersPropGerant_TM as $index => $dataPlayerGerant) {
$id_player_gerant = $dataPlayerGerant['id_player'];
$pos_gerant = $dataPlayerGerant['pos'];
$pj_gerant = $dataPlayerGerant['pj'];
$pts_gerant = $dataPlayerGerant['pts'];
$firstName_gerant = $dataPlayerGerant['first_name'];
$lastName_gerant = $dataPlayerGerant['last_name'];
$logo_gerant = $dataPlayerGerant['logo'];
$id_forecaster_gerant = $dataPlayerGerant['id_forecaster'];
$trading_block_gerant = $dataPlayerGerant['trading_block'];
$salaire_unformatted = $dataPlayerGerant['salary_frozen'];
$salaire_gerant = number_format($salaire_unformatted, 0, ".", ",");
// parties nhl et pts nhl du joueur (pas du rang...)
$pj_nhl = $pool->getPartiesNHLJoueur($id_pool, $id_saison, $id_player_gerant);
$pts_nhl = $pool->getPlayerPtsNHL($id_player_gerant, $date_debut_saison, $id_saison, $id_pool);
// get pj restantes pour le joueur si nécessaire
if ($salary_cap_enabled == "Y") {
$pj_restantes = $pool->getPlayerPJRestantes($id_pool, $id_saison, $id_player_gerant, $periode);
}
if ($pool->isPlayerInjured($id_player_gerant, $pool->today, $id_saison)) {
$show_injury_gerant = "<img class=\"injury_icon\" id=\"{$id_player_gerant}\" src=\"/images/red-cross.png\" " . "border=0 width=20 height=20 style=\"padding-top:5px;padding-left:5px;\" /><br>";
} else {
$show_injury_gerant = "";
}
if ($id_forecaster_gerant > 0) {
if ($id_forecaster_gerant < 10) {
$id_forecaster_photo_gerant = "000{$id_forecaster_gerant}";
} elseif ($id_forecaster_gerant < 100) {
$id_forecaster_photo_gerant = "00{$id_forecaster_gerant}";
} elseif ($id_forecaster_gerant < 1000) {