当前位置: 首页>>代码示例>>PHP>>正文


PHP Language::__construct方法代码示例

本文整理汇总了PHP中Language::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Language::__construct方法的具体用法?PHP Language::__construct怎么用?PHP Language::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Language的用法示例。


在下文中一共展示了Language::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 function __construct()
 {
     parent::__construct();
     $variants = array('iu', 'ike-cans', 'ike-latn');
     $variantfallbacks = array('iu' => 'ike-cans', 'ike-cans' => 'iu', 'ike-latn' => 'iu');
     $flags = array();
 }
开发者ID:omarjedhxxx44,项目名称:croptool,代码行数:7,代码来源:LanguageIu.php

示例2: UzConverter

 function __construct()
 {
     parent::__construct();
     $variants = ['uz', 'uz-latn', 'uz-cyrl'];
     $variantfallbacks = ['uz' => 'uz-latn', 'uz-cyrl' => 'uz', 'uz-latn' => 'uz'];
     $this->mConverter = new UzConverter($this, 'uz', $variants, $variantfallbacks);
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:7,代码来源:LanguageUz.php

示例3: array

 function __construct()
 {
     global $wgHooks;
     parent::__construct();
     $variants = array('uz', 'uz-latn', 'uz-cyrl');
     $variantfallbacks = array('uz' => 'uz-latn', 'uz-cyrl' => 'uz', 'uz-latn' => 'uz');
     $this->mConverter = new UzConverter($this, 'uz', $variants, $variantfallbacks);
     $wgHooks['ArticleSaveComplete'][] = $this->mConverter;
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:9,代码来源:LanguageUz.php

示例4: array

 function __construct()
 {
     parent::__construct();
     $variants = array('tg', 'tg-latn');
     $this->mConverter = new TgConverter($this, 'tg', $variants);
 }
开发者ID:amjadtbssm,项目名称:website,代码行数:6,代码来源:LanguageTg.php

示例5: array

 function __construct()
 {
     global $wgHooks;
     parent::__construct();
     $variants = array('iu', 'ike-cans', 'ike-latn');
     $variantfallbacks = array('iu' => 'ike-cans', 'ike-cans' => 'iu', 'ike-latn' => 'iu');
     $flags = array();
     $this->mConverter = new IuConverter($this, 'iu', $variants, $variantfallbacks, $flags);
     $wgHooks['ArticleSaveComplete'][] = $this->mConverter;
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:10,代码来源:LanguageIu.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->Charset = 'UTF-8';
 }
开发者ID:JoseTfg,项目名称:Booked,代码行数:5,代码来源:hr_hr.php

示例7: __construct

 public function __construct()
 {
     parent::__construct("German", "de_DE");
 }
开发者ID:faozimipa,项目名称:PUTTS,代码行数:4,代码来源:de_DE.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:Trideon,项目名称:gigolo,代码行数:4,代码来源:lt.php

示例9: ShiConverter

 function __construct()
 {
     parent::__construct();
     $variants = ['shi', 'shi-tfng', 'shi-latn'];
     $variantfallbacks = ['shi' => 'shi-tfng', 'shi-tfng' => 'shi', 'shi-latn' => 'shi'];
     $flags = [];
     $this->mConverter = new ShiConverter($this, 'shi', $variants, $variantfallbacks, $flags);
 }
开发者ID:paladox,项目名称:mediawiki,代码行数:8,代码来源:LanguageShi.php

示例10: array

 function __construct()
 {
     parent::__construct();
     $variants = array('iu', 'ike-cans', 'ike-latn');
     $variantfallbacks = array('iu' => 'ike-cans', 'ike-cans' => 'iu', 'ike-latn' => 'iu');
     $flags = array();
     $this->mConverter = new IuConverter($this, 'iu', $variants, $variantfallbacks, $flags);
 }
开发者ID:OrBin,项目名称:mediawiki,代码行数:8,代码来源:LanguageIu.php

示例11: SoapClient

 /**
  * Конструктор инициализации соединения с сервером SOAP
  * @param array $_CONFIG массив с настройками приложения
  * @param object $APPLICATION главный объект 1-С Битрикс
  * @return object TecDoc
  */
 function __construct($_CONFIG, $APPLICATION)
 {
     if ($_CONFIG) {
         $this->_CONFIG = $_CONFIG;
     }
     if ($APPLICATION) {
         $this->APPLICATION = $APPLICATION;
     }
     parent::__construct($this->_CONFIG);
     // вызываем родительский конструктор
     try {
         $this->_SOAP = new SoapClient($this->_CONFIG['SERVER'], array('trace' => true));
     } catch (SoapFault $e) {
         /**
          * Ошибка соединения, сбрасываю..
          */
         $this->APPLICATION->SetTitle(Language::getLanguage('CONNECTION_FAIL'));
         Debug::getMessage($e->faultcode . ': ' . $e->faultstring);
         echo $exception->faultcode;
         // вывожу исключение
         unset($this->_SOAP);
     }
     if ($this->_CONFIG['ENABLE_CACHE']) {
         /**
          * Включаю кэширование SOAP запросов
          */
         ini_set("soap.wsdl_cache_enabled", "On");
         ini_set('soap.wsdl_cache_dir', $this->_CONFIG['CACHE_PATH']);
         ini_set('soap.wsdl_cache_ttl', '86400');
         // на сутки
     }
     /*
      * Фильтрую входящие данные
      */
     $this->GET_data = $this->__filter_vars($_GET);
     $this->POST_data = $this->__filter_vars($_POST);
     $this->COOK_data = $this->__filter_vars($_COOKIE);
     //DEBUG::deBug($_SESSION);
 }
开发者ID:DenisMalofeyev,项目名称:tecdoc,代码行数:45,代码来源:class.TecDoc.php

示例12: __construct

 public function __construct($id)
 {
     parent::__construct($id);
 }
开发者ID:jeckel420,项目名称:Localize,代码行数:4,代码来源:Language_Android.php

示例13: TestConverter

 function __construct()
 {
     parent::__construct();
     $variants = ['tg', 'tg-latn'];
     $this->mConverter = new TestConverter($this, 'tg', $variants);
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:6,代码来源:LanguageConverterTest.php

示例14: __construct

 /**
  * Constructor
  *
  * @param string $eventId
  * @param string $accountId
  * @param string $language ISO639-1 language code
  */
 public function __construct($eventId, $accountId, $language = null)
 {
     parent::__construct($language);
     $this->setEventId($eventId);
     $this->setAccountId($accountId);
 }
开发者ID:sjaakmoes,项目名称:dotapi2,代码行数:13,代码来源:EventStats.php

示例15: array

 function __construct()
 {
     parent::__construct();
     $variants = array('sr', 'sr-ec', 'sr-el');
     $variantfallbacks = array('sr' => 'sr-ec', 'sr-ec' => 'sr', 'sr-el' => 'sr');
     $flags = array('S' => 'S', 'писмо' => 'S', 'pismo' => 'S', 'W' => 'W', 'реч' => 'W', 'reč' => 'W', 'ријеч' => 'W', 'riječ' => 'W');
     $this->mConverter = new SrConverter($this, 'sr', $variants, $variantfallbacks, $flags);
 }
开发者ID:OrBin,项目名称:mediawiki,代码行数:8,代码来源:LanguageSr.php


注:本文中的Language::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。