本文整理匯總了PHP中Shop::GetItemData方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shop::GetItemData方法的具體用法?PHP Shop::GetItemData怎麽用?PHP Shop::GetItemData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Shop
的用法示例。
在下文中一共展示了Shop::GetItemData方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: switch
if (Text::IsNull($_REQUEST['lastcategory'])) {
} else {
switch ($_REQUEST['lastcategory']) {
case 'success':
break;
case 'failed':
break;
case 'canceled':
break;
}
}
} else {
$Category = explode('-', $_REQUEST['subcategory'])[0];
if (isset($_REQUEST['subcategory'])) {
$WhichItem = str_replace('item-', '', str_replace('complete-', '', str_replace('pay-', '', str_replace('buy-', '', str_replace('pet-', '', str_replace('mount-', '', $_REQUEST['subcategory']))))));
$ItemData = Shop::GetItemData($WhichItem);
$Smarty->assign('ItemData', $ItemData);
}
switch ($Category) {
case 'mount':
$Smarty->assign('Page', Page::Info('shop-mount', array('bodycss' => 'product-template video-enabled product-family-wow', 'pagetitle' => $ItemData['item_name'] . ' - ')));
$Smarty->display('shop/mount');
break;
case 'item':
$Smarty->assign('Page', Page::Info('shop-item', array('bodycss' => 'product-template video-enabled product-family-wow', 'pagetitle' => $ItemData['item_name'] . ' - ')));
$Smarty->display('shop/item');
break;
case 'buy':
if (Account::IsAuthorized($_SESSION['username'], 0)) {
$Smarty->assign('PurchaseCompleted', false);
$Smarty->assign('Accounts', Account::GetGameAccounts($_SESSION['username']));
示例2: GetItemDataByServiceName
private static function GetItemDataByServiceName($ServiceName)
{
Manager::LoadExtension('Shop', Account::$VariablesArray);
$ItemData = Shop::GetItemData($ServiceName);
return $ItemData;
}