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


PHP Classes::getBoostProfessions方法代码示例

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


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

示例1: array

             case 'history':
                 $Smarty->assign('Payments', Account::GetServicePaymentHistory($User['id'], $Service['name']));
                 $Smarty->assign('Page', Page::Info('account_dashboard', array('bodycss' => 'servicespage', 'pagetitle' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_History') . ' - ')));
                 $Smarty->display('account/pcs_history');
                 break;
             case 'tos':
                 $ServiceBasedTos = array('First' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_One'), 'Second' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_Two'), 'Third' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_Three'), 'Forth' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_Four'));
                 $Smarty->assign('ToS', $ServiceBasedTos);
                 $Smarty->assign('Page', Page::Info('account_dashboard', array('bodycss' => 'servicespage', 'pagetitle' => $Smarty->GetConfigVars('Account_Management_Service_' . $Service['service']) . ' - ')));
                 $Smarty->display('account/pcs_tos');
                 break;
             case 'confirm':
                 if ($_REQUEST['service'] == 'PCB') {
                     Manager::LoadExtension('Classes', $ClassConstructor);
                     $Smarty->assign('BoostItems', Classes::getBoostClassData($CharacterData['class']));
                     $Smarty->assign('ProfessionsBoost', Classes::getBoostProfessions($CharacterData['guid']));
                 }
                 $Smarty->assign('Page', Page::Info('account_dashboard', array('bodycss' => 'servicespage', 'pagetitle' => $Smarty->GetConfigVars('Account_Management_Service_' . $Service['service']) . ' - ')));
                 $Smarty->display('account/pcs_confirm');
                 break;
             default:
                 header('Location: /account/management');
                 break;
         }
     }
     break;
 case 'FIR':
     if (!isset($_REQUEST['servicecat'])) {
         $Service = array('name' => strtolower($_REQUEST['service']), 'title' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service']), 'description' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_Description'), 'service' => $_REQUEST['service'], 'price' => Account::GetServicePrice($_REQUEST['service']));
         $Smarty->assign('Service', $Service);
         $Smarty->assign('Characters', Characters::GetCharacters($User['id']));
开发者ID:Expecto,项目名称:FreedomCore,代码行数:31,代码来源:pager.php

示例2: prepareBoostData

 public static function prepareBoostData($Character)
 {
     $ClassItems = Classes::getBoostClassData($Character['class']);
     $CharacterItems = [];
     $DataArray['Main'] = Characters::generateCharacterLevelUP($Character['guid']);
     foreach ($ClassItems as $CI) {
         foreach ($CI as $Key => $Value) {
             if ($Key == $_REQUEST['specialization']) {
                 $CharacterItems[] = $Value;
             }
         }
     }
     $CharacterItems = call_user_func_array('array_merge', $CharacterItems);
     if ($Character['level'] >= 60) {
         $BoostProfessions = Classes::getBoostProfessions($Character['guid']);
         $DataArray['Skills'] = Characters::generateCharacterSkillsSQL($Character['guid'], $BoostProfessions);
     }
     if (self::getBoostSpells($Character['class'])) {
         $DataArray['Spells'] = Characters::generateCharacterSpellsSQL($Character['guid'], self::getBoostSpells($Character['class']));
     }
     $DataArray['ItemInstance'] = Items::generateItemInstanceSQL($Character['guid'], $CharacterItems);
     $DataArray['CharacterInv'] = Characters::generateCharacterInventorySQL($Character['guid'], $CharacterItems);
     return $DataArray;
 }
开发者ID:Expecto,项目名称:FreedomCore,代码行数:24,代码来源:Classes.FreedomCore.php


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