本文整理匯總了PHP中Translations::langs方法的典型用法代碼示例。如果您正苦於以下問題:PHP Translations::langs方法的具體用法?PHP Translations::langs怎麽用?PHP Translations::langs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Translations
的用法示例。
在下文中一共展示了Translations::langs方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_cookie
}
}
$view->users = $users;
// ==============================
// = display global roles table =
// ==============================
$view->globalRoles = $database->global_roles();
$view->globalRoles_display = $view->render("globalRoles.php");
// ==================================
// = display membership roles table =
// ==================================
$view->membershipRoles = $database->membership_roles();
$view->membershipRoles_display = $view->render("membershipRoles.php");
$view->showDeletedGroups = get_cookie('adminPanel_extension_show_deleted_groups', 0);
$view->showDeletedUsers = get_cookie('adminPanel_extension_show_deleted_users', 0);
$view->languages = Translations::langs();
$view->timezones = timezoneList();
$status = $database->get_statuses();
$view->arr_status = $status;
$admin['users'] = $view->render("users.php");
$admin['groups'] = $view->render("groups.php");
$admin['status'] = $view->render("status.php");
if ($kga['conf']['editLimit'] != '-') {
$view->editLimitEnabled = true;
$editLimit = $kga['conf']['editLimit'] / (60 * 60);
// convert to hours
$view->editLimitDays = (int) ($editLimit / 24);
$view->editLimitHours = (int) ($editLimit % 24);
} else {
$view->editLimitEnabled = false;
$view->editLimitDays = '';
示例2: array
*/
/**
* Display the preferences dialog.
*/
case 'prefs':
if (isset($kga['customer'])) {
die;
}
$skins = array();
$langs = array();
$allSkins = glob(__DIR__ . "/../skins/*", GLOB_ONLYDIR);
foreach ($allSkins as $skin) {
$name = basename($skin);
$skins[$name] = $name;
}
foreach (Translations::langs() as $lang) {
$langs[$lang] = $lang;
}
$view->skins = $skins;
$view->langs = $langs;
$view->timezones = timezoneList();
$view->user = $kga['user'];
$view->rate = $database->get_rate($kga['user']['userID'], NULL, NULL);
echo $view->render("floaters/preferences.php");
break;
/**
* Display the dialog to add or edit a customer.
*/
/**
* Display the dialog to add or edit a customer.
*/