當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Utilities::GetLanguage方法代碼示例

本文整理匯總了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);
 }
開發者ID:anonymous33rus,項目名稱:FreedomCore,代碼行數:8,代碼來源:Cache.FreedomCore.php

示例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;
 }
開發者ID:Expecto,項目名稱:FreedomCore,代碼行數:10,代碼來源:Patches.FreedomCore.php

示例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;
開發者ID:Expecto,項目名稱:FreedomCore,代碼行數:31,代碼來源:pager.php

示例4: loadLanguage

 /**
  * Get User Language
  *
  * @return Returning Preferred User Language base on Browser Language
  */
 public function loadLanguage()
 {
     $UserLanguage = Utilities::GetLanguage();
     return $UserLanguage;
 }
開發者ID:kotishe,項目名稱:FreedomCore,代碼行數:10,代碼來源:FreedomCore.Library.php

示例5: LanguageCode

 public static function LanguageCode()
 {
     return Utilities::GetLanguage(true);
 }
開發者ID:Expecto,項目名稱:FreedomCore,代碼行數:4,代碼來源:Utilities.FreedomCore.php


注:本文中的Utilities::GetLanguage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。