本文整理匯總了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;