本文整理汇总了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();
}
示例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);
}
示例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;
}
示例4: array
function __construct()
{
parent::__construct();
$variants = array('tg', 'tg-latn');
$this->mConverter = new TgConverter($this, 'tg', $variants);
}
示例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;
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->Charset = 'UTF-8';
}
示例7: __construct
public function __construct()
{
parent::__construct("German", "de_DE");
}
示例8: __construct
public function __construct()
{
parent::__construct();
}
示例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);
}
示例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);
}
示例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);
}
示例12: __construct
public function __construct($id)
{
parent::__construct($id);
}
示例13: TestConverter
function __construct()
{
parent::__construct();
$variants = ['tg', 'tg-latn'];
$this->mConverter = new TestConverter($this, 'tg', $variants);
}
示例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);
}
示例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);
}