本文整理汇总了PHP中TikiLib::list_languages方法的典型用法代码示例。如果您正苦于以下问题:PHP TikiLib::list_languages方法的具体用法?PHP TikiLib::list_languages怎么用?PHP TikiLib::list_languages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TikiLib
的用法示例。
在下文中一共展示了TikiLib::list_languages方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
// if local then build dsn and try to connect
// then get con or nocon
//adodb settings
if (!defined('ADODB_FORCE_NULLS')) {
define('ADODB_FORCE_NULLS', 1);
}
if (!defined('ADODB_ASSOC_CASE')) {
define('ADODB_ASSOC_CASE', 2);
}
if (!defined('ADODB_CASE_ASSOC')) {
// typo in adodb's driver for sybase? // so do we even need this without sybase? What's this?
define('ADODB_CASE_ASSOC', 2);
}
include 'lib/tikilib.php';
// Get list of available languages
$languages = TikiLib::list_languages(false, null, true);
$smarty->assignByRef("languages", $languages);
$client_charset = '';
// next block checks if there is a local.php and if we can connect through this.
// sets $dbcon to false if there is no valid local.php
$dbcon = (bool) TikiDb::get();
$installer = null;
if (file_exists($local)) {
// include the file to get the variables
$default_api_tiki = $api_tiki;
$api_tiki = '';
include $local;
if (!($client_charset_forced = isset($client_charset))) {
$client_charset = '';
}
$previousDbApi = $api_tiki;