本文整理匯總了PHP中Utilities::GetLanguage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Utilities::GetLanguage方法的具體用法?PHP Utilities::GetLanguage怎麽用?PHP Utilities::GetLanguage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Utilities
的用法示例。
在下文中一共展示了Utilities::GetLanguage方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($Object)
{
$this->CachePath = getcwd() . DS . "Cache" . DS . "Compile" . DS . $Object . DS;
$this->CacheExtension = '.fnc';
$this->CacheLife = 86400;
$this->CacheObject = $Object;
$this->CacheLocale = Utilities::GetLanguage(true);
}
示例2: GetMenu
public static function GetMenu()
{
$Statement = Patches::$DBConnection->prepare('SELECT * FROM patch_notes ORDER BY id DESC');
$Statement->execute();
$Result = $Statement->fetchAll(PDO::FETCH_ASSOC);
for ($i = 0; $i < count($Result); $i++) {
$Result[$i]['patch_name'] = $Result[$i]['patch_name_' . Utilities::GetLanguage(true)];
}
return $Result;
}
示例3: array
$Smarty->assign('Instances', Zones::GetZonesForLandingPage());
$Smarty->assign('Page', Page::Info('zone', array('bodycss' => 'zone-index expansion-0', 'pagetitle' => $Smarty->GetConfigVars('Zones_InstancesRaidsCMs') . ' - ')));
$Smarty->display('pages/zones');
} else {
if (is_numeric($_REQUEST['subcategory'])) {
if ($_REQUEST['lastcategory'] == 'tooltip') {
$ZoneInfo = Zones::GetZoneInfoByID($_REQUEST['subcategory']);
$Smarty->assign('Zone', $ZoneInfo);
$Smarty->display('blocks/zone_tooltip');
} else {
header('Location: /');
}
} else {
$ZoneInfo = Zones::GetZoneInfoByName($_REQUEST['subcategory']);
if (Text::IsNull($_REQUEST['lastcategory'])) {
$ChosenLang = Utilities::BlizzardLanguageFormat(Utilities::GetLanguage(true));
Zones::DownloadScreenshots($ZoneInfo, $ChosenLang);
Zones::DownloadMap($ZoneInfo, $ChosenLang);
$Smarty->assign('LanguageStyle', $ChosenLang);
$Smarty->assign('ZoneInfo', $ZoneInfo);
$Smarty->assign('Page', Page::Info('zone', array('bodycss' => 'zone-' . $ZoneInfo['link_name'], 'pagetitle' => $ZoneInfo['name'] . ' - ' . $Smarty->GetConfigVars('Menu_Game') . ' - ')));
$Smarty->display('pages/zone_info');
} else {
$BossesArray = array();
foreach ($ZoneInfo['bosses'] as $Boss) {
$BossesArray[] = $Boss['boss_link'];
}
$BossInfo = $ZoneInfo['bosses'][Text::MASearch($ZoneInfo['bosses'], 'boss_link', $_REQUEST['lastcategory'])];
if (in_array($_REQUEST['lastcategory'], $BossesArray)) {
if (Text::IsNull($_REQUEST['datatype'])) {
$StorageDir = str_replace('/', DS, getcwd()) . DS . 'Uploads' . DS . 'Core' . DS . 'NPC' . DS . 'ModelViewer' . DS;
示例4: loadLanguage
/**
* Get User Language
*
* @return Returning Preferred User Language base on Browser Language
*/
public function loadLanguage()
{
$UserLanguage = Utilities::GetLanguage();
return $UserLanguage;
}
示例5: LanguageCode
public static function LanguageCode()
{
return Utilities::GetLanguage(true);
}