本文整理汇总了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);
}