当前位置: 首页>>代码示例>>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;未经允许,请勿转载。