本文整理汇总了PHP中Classes::getBoostClassData方法的典型用法代码示例。如果您正苦于以下问题:PHP Classes::getBoostClassData方法的具体用法?PHP Classes::getBoostClassData怎么用?PHP Classes::getBoostClassData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Classes
的用法示例。
在下文中一共展示了Classes::getBoostClassData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
switch ($_REQUEST['servicecat']) {
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);
示例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;
}