當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。