本文整理汇总了PHP中LanguageConverter::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP LanguageConverter::__construct方法的具体用法?PHP LanguageConverter::__construct怎么用?PHP LanguageConverter::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LanguageConverter
的用法示例。
在下文中一共展示了LanguageConverter::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* @param Language $langobj
* @param string $maincode
* @param array $variants
* @param array $variantfallbacks
* @param array $flags
* @param array $manualLevel
*/
function __construct($langobj, $maincode, $variants = array(), $variantfallbacks = array(), $flags = array(), $manualLevel = array())
{
$this->mDescCodeSep = ':';
$this->mDescVarSep = ';';
parent::__construct($langobj, $maincode, $variants, $variantfallbacks, $flags, $manualLevel);
$names = array('gan' => '原文', 'gan-hans' => '简体', 'gan-hant' => '繁體');
$this->mVariantNames = array_merge($this->mVariantNames, $names);
}
示例2: array
function __construct($langobj, $maincode, $variants = array(), $variantfallbacks = array(), $flags = array(), $manualLevel = array())
{
$this->mDescCodeSep = ':';
$this->mDescVarSep = ';';
parent::__construct($langobj, $maincode, $variants, $variantfallbacks, $flags, $manualLevel);
$names = array('zh' => '原文', 'zh-hans' => '简体', 'zh-hant' => '繁體', 'zh-cn' => '大陆', 'zh-tw' => '台灣', 'zh-hk' => '香港', 'zh-mo' => '澳門', 'zh-sg' => '新加坡', 'zh-my' => '大马');
$this->mVariantNames = array_merge($this->mVariantNames, $names);
}
示例3: array
/**
* @param Language $langobj
* @param string $maincode
* @param array $variants
* @param array $variantfallbacks
* @param array $flags
*/
function __construct($langobj, $maincode, $variants = array(), $variantfallbacks = array(), $flags = array())
{
parent::__construct($langobj, $maincode, $variants, $variantfallbacks, $flags);
// No point delaying this since they're in code.
// Waiting until loadDefaultTables() means they never get loaded
// when the tables themselves are loaded from cache.
$this->loadRegs();
}