本文整理汇总了PHP中Language::get_message方法的典型用法代码示例。如果您正苦于以下问题:PHP Language::get_message方法的具体用法?PHP Language::get_message怎么用?PHP Language::get_message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Language
的用法示例。
在下文中一共展示了Language::get_message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: browser
/**
* @throws DataSecuriyAccessDeniedException
*/
public static function browser()
{
global $content;
$data_browser = new DataBrowser();
if ($_GET['vfolder_id']) {
$virtual_folder = new VirtualFolder($_GET['vfolder_id']);
$virtual_folder_id = $_GET['vfolder_id'];
$folder_id = null;
$data_path = new DataPath(null, $_GET['vfolder_id']);
} elseif ($_GET['folder_id']) {
$folder = Folder::get_instance($_GET['folder_id']);
if ($folder->is_read_access() == false) {
throw new DataSecurityAccessDeniedException();
} else {
$virtual_folder_id = null;
$folder_id = $_GET['folder_id'];
$data_path = new DataPath($_GET['folder_id'], null);
}
} else {
$data_path = new DataPath(null, null);
if ($data_path->get_last_entry_type() == true) {
$virtual_folder_id = $data_path->get_last_entry_id();
$folder_id = null;
} else {
$virtual_folder_id = null;
$folder_id = $data_path->get_last_entry_id();
}
}
if ($folder_id == null and $virtual_folder_id == null) {
$folder_id = $data_browser->get_folder_id();
$argument_array = array();
$argument_array[0][0] = "folder_id";
$argument_array[0][1] = $folder_id;
$argument_array[1][0] = "virtual_folder_id";
$argument_array[1][1] = null;
}
$argument_array = array();
$argument_array[0][0] = "folder_id";
$argument_array[0][1] = $folder_id;
$argument_array[1][0] = "virtual_folder_id";
$argument_array[1][1] = $virtual_folder_id;
$list = new List_IO("DataBrowser", "ajax.php?nav=data", "list_data_browser", "count_data_browser", $argument_array, "DataBrowserAjax");
$list->add_column("", "delete_checkbox", false, "22px");
$list->add_column("", "symbol", false, "22px");
$list->add_column(Language::get_message("DataGeneralListColumnName", "general"), "name", true, "30%");
$list->add_column(Language::get_message("DataGeneralListColumnType", "general"), "type", true, null);
$list->add_column(Language::get_message("DataGeneralListColumnVersion", "general"), "version", false, null);
$list->add_column(Language::get_message("DataGeneralListColumnDateTime", "general"), "datetime", true, "10em");
$list->add_column(Language::get_message("DataGeneralListColumnSize", "general"), "size", true, null);
$list->add_column(Language::get_message("DataGeneralListColumnOwner", "general"), "owner", true, null);
$list->add_column(Language::get_message("DataGeneralListColumnPermission", "general"), "permission", false, null);
$folder = Folder::get_instance($folder_id);
$template = new HTMLTemplate("data/data_browser.html");
$template->set_var("title", "Data Browser");
$template->set_var("list", $list->get_list());
$template->output();
}
示例2: home
public static function home()
{
$list = new List_IO("BaseAdminIncludeHome", "ajax.php?nav=base.admin", "admin_list_includes", "admin_count_includes", "0", "BaseAdminIncludeAjax");
$list->add_column(Language::get_message("BaseGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnFolder", "general"), "folder", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnEventListerns", "general"), "eventlisteners", true, null);
$template = new HTMLTemplate("base/admin/base_include/list.html");
$template->set_var("list", $list->get_list());
$template->output();
}
示例3: home
public static function home()
{
$list = new List_IO("BaseAdminModuleHome", "ajax.php?nav=base.admin", "admin_list_modules", "admin_count_modules", "0", "BaseAdminModuleHome");
$list->add_column(Language::get_message("BaseGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnDialogs", "general"), "dialogs", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnLinks", "general"), "links", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnDisable", "general"), "disable", false, "80px");
$template = new HTMLTemplate("base/admin/base_module/list.html");
$template->set_var("list", $list->get_list());
$template->output();
}
示例4: home
public static function home()
{
$list = new List_IO("DataAdminParameterMethod", "ajax.php?nav=data", "admin_list_parameter_methods", "admin_count_parameter_methods", "0", "DataAdminParameterMethod");
$list->add_column("", "symbol", false, "20px");
$list->add_column(Language::get_message("DataGeneralListColumnName", "general"), "name");
$list->add_column("", "edit", false, "20px");
$list->add_column("", "delete", false, "20px");
$template = new HTMLTemplate("data/admin/parameter_method/list.html");
$template->set_var("list", $list->get_list());
$template->output();
}
示例5: home
public static function home()
{
$list = new List_IO("BaseAdminServiceHome", "ajax.php?nav=base.admin", "admin_list_service", "admin_count_service", "0", "BaseAdminServiceHome");
$list->add_column("", "icon", false, "16px");
$list->add_column(Language::get_message("BaseGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnStatus", "general"), "status", true, null);
$list->add_column("", "start", false, "16px");
$list->add_column("", "stop", false, "16px");
$template = new HTMLTemplate("base/admin/service/list.html");
$template->set_var("list", $list->get_list());
$template->output();
}
示例6: list_manufacturers
public static function list_manufacturers()
{
$list = new List_IO("Manufacturer", "ajax.php?nav=manufacturer", "list_manufacturers", "count_manufacturers", "0", "ManufacturerListPage");
$list->add_column("", "symbol", false, "16px");
$list->add_column(Language::get_message("ManufacturerGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("ManufacturerGeneralListColumnUser", "general"), "user", true, null);
$list->add_column("", "delete", false, "16px");
$template = new HTMLTemplate("manufacturer/list.html");
$template->set_var("ADD_DIALOG", self::add());
$template->set_var("list", $list->get_list());
$template->output();
}
示例7: home
public static function home()
{
$list = new List_IO("BaseAdminRegistryHome", "ajax.php?nav=base.admin", "admin_list_registry", "admin_count_registry", "0", "BaseAdminRegistryHome");
$list->add_column("", "icon", false, "16px");
$list->add_column(Language::get_message("BaseGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnValue", "general"), "value", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnInclude", "general"), "include", true, null);
$list->add_column("", "edit", false, "16px", "BaseAdminRegistryEditButton");
$template = new HTMLTemplate("base/admin/base_registry/list.html");
$template->set_var("list", $list->get_list());
$template->output();
}
示例8: tab_header
public static function tab_header()
{
$tab_io = new Tab_IO();
// Main Page
$paramquery['username'] = $_GET['username'];
$paramquery['session_id'] = $_GET['session_id'];
$paramquery['nav'] = "sample";
$paramquery['run'] = "detail";
$paramquery['sample_id'] = $_GET['sample_id'];
$params = http_build_query($paramquery, '', '&');
unset($paramquery);
$tab_io->add("main", Language::get_message("SampleGeneralDetailTabMainPage", "general"), $params, false);
// Parent Item Dialogs
$module_dialog_array = ModuleDialog::list_dialogs_by_type("parent_item_list");
if (is_array($module_dialog_array) and count($module_dialog_array) >= 1) {
foreach ($module_dialog_array as $key => $value) {
$paramquery['username'] = $_GET['username'];
$paramquery['session_id'] = $_GET['session_id'];
$paramquery['nav'] = "sample";
$paramquery['run'] = "parent_item_list";
$paramquery['sample_id'] = $_GET['sample_id'];
$paramquery['dialog'] = $value['internal_name'];
$params = http_build_query($paramquery, '', '&');
$tab_io->add("pil_" . $value['internal_name'], Language::get_message($value['language_address'], "dialog"), $params, false);
}
}
// Item Lister Dialogs
$module_dialog_array = ModuleDialog::list_dialogs_by_type("item_list");
if (is_array($module_dialog_array) and count($module_dialog_array) >= 1) {
foreach ($module_dialog_array as $key => $value) {
$paramquery['username'] = $_GET['username'];
$paramquery['session_id'] = $_GET['session_id'];
$paramquery['nav'] = "sample";
$paramquery['run'] = "item_list";
$paramquery['sample_id'] = $_GET['sample_id'];
$paramquery['dialog'] = $value['internal_name'];
$params = http_build_query($paramquery, '', '&');
$tab_io->add("il_" . $value['internal_name'], Language::get_message($value['language_address'], "dialog"), $params, false);
}
}
if ($_GET['run'] != "parent_item_list" and $_GET['run'] != "item_list") {
$tab_io->activate("main");
} else {
if ($_GET['run'] == "item_list" and $_GET['dialog']) {
$tab_io->activate("il_" . $_GET['dialog']);
} elseif ($_GET['run'] == "parent_item_list" and $_GET['dialog']) {
$tab_io->activate("pil_" . $_GET['dialog']);
} else {
$tab_io->activate("main");
}
}
$tab_io->output();
}
示例9: home
public static function home()
{
$list = new List_IO("BaseAdminNavigationHome", "ajax.php?nav=base.admin", "admin_list_navigation", "admin_count_navigation", "0", "BaseAdminNavigationHome");
$list->add_column(Language::get_message("BaseGeneralListColumnName", "general"), "name", false, null);
$list->add_column(Language::get_message("BaseGeneralListColumnModule", "general"), "module", false, null);
$list->add_column(Language::get_message("BaseGeneralListColumnColour", "general"), "colour", false, null);
$list->add_column(Language::get_message("BaseGeneralListColumnUW", "general"), "uw", false, null);
$list->add_column(Language::get_message("BaseGeneralListColumnDW", "general"), "dw", false, null);
$list->add_column(Language::get_message("BaseGeneralListColumnShowHide", "general"), "hide", false, "80px");
$template = new HTMLTemplate("base/admin/base_navigation/list.html");
$template->set_var("list", $list->get_list());
$template->output();
}
示例10: home
public static function home()
{
$list = new List_IO("SampleAdminTemplateCat", "ajax.php?nav=sample", "admin_sample_template_categorie_list_categories", "admin_sample_template_categorie_count_categories", "0", "SampleAdminTemplateCat");
$list->add_column(Language::get_message("SampleGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("SampleGeneralListColumnEdit", "general"), "edit", false, "10%");
$list->add_column(Language::get_message("SampleGeneralListColumnDelete", "general"), "delete", false, "10%");
$template = new HTMLTemplate("sample/admin/sample_template_cat/list.html");
$paramquery = $_GET;
$paramquery['action'] = "add";
unset($paramquery['nextpage']);
$params = http_build_query($paramquery, '', '&');
$template->set_var("add_params", $params);
$template->set_var("list", $list->get_list());
$template->output();
}
示例11: permission
/**
* @throws ProjectIDMissingException
* @throws ProjectSecurityAccessDeniedException
*/
public static function permission()
{
global $project_security, $user;
if ($_GET['project_id']) {
$project_id = $_GET['project_id'];
$project = new Project($project_id);
$project_permission_array = ProjectPermission::list_entries_by_project_id($project_id);
if ($user->get_user_id() == $project->get_owner_id() or $project_security->is_access(2, false) == true or $project_security->is_access(4, false) == true or $project_security->is_access(7, false) == true) {
$argument_array = array();
$argument_array[0] = "project_id";
$argument_array[1] = $_GET['project_id'];
$list = new List_IO("ProjectPermission", "ajax.php?nav=project", "list_project_permissions", "count_project_permissions", $argument_array, "ProjectAjaxMyProjects");
$list->add_column("", "symbol", false, "16px");
$list->add_column(Language::get_message("ProjectGeneralListColumnUserGroup", "general"), "name", true, null);
$list->add_column(Language::get_message("ProjectGeneralListColumnType", "general"), "type", true, null);
$list->add_column(Language::get_message("ProjectGeneralListColumnFullName", "general"), "fullname", true, null);
$list->add_column(Language::get_message("ProjectGeneralListColumnCreatedBy", "general"), "createdby", true, null);
$list->add_column(Language::get_message("ProjectGeneralListColumnRE", "general"), "re", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnSR", "general"), "sr", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnWR", "general"), "wr", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnSW", "general"), "sw", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnRA", "general"), "ra", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnDE", "general"), "de", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnSP", "general"), "sp", false, "25px");
$list->add_column(Language::get_message("ProjectGeneralListColumnE", "general"), "e", false, "16px");
$list->add_column(Language::get_message("ProjectGeneralListColumnD", "general"), "d", false, "16px");
$template = new HTMLTemplate("project/admin/permission.html");
$add_user_paramquery = $_GET;
$add_user_paramquery['run'] = "admin_permission_add_user";
$add_user_params = http_build_query($add_user_paramquery, '', '&');
$template->set_var("add_user_params", $add_user_params);
$add_group_paramquery = $_GET;
$add_group_paramquery['run'] = "admin_permission_add_group";
$add_group_params = http_build_query($add_group_paramquery, '', '&');
$template->set_var("add_group_params", $add_group_params);
$add_ou_paramquery = $_GET;
$add_ou_paramquery['run'] = "admin_permission_add_ou";
$add_ou_params = http_build_query($add_ou_paramquery, '', '&');
$template->set_var("add_ou_params", $add_ou_params);
$template->set_var("list", $list->get_list());
$template->output();
} else {
throw new ProjectSecurityAccessDeniedException();
}
} else {
throw new ProjectIDMissingException();
}
}
示例12: home
public static function home()
{
$list = new List_IO("DataAdminValueTemplate", "ajax.php?nav=data", "admin_list_value_templates", "admin_count_value_templates", "0", "DataAdminValueTemplate");
$list->add_column(Language::get_message("DataGeneralListColumnID", "general"), "id", true, null);
$list->add_column(Language::get_message("DataGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("DataGeneralListColumnFile", "general"), "file", true, null);
$list->add_column(Language::get_message("DataGeneralListColumnDelete", "general"), "delete", false, "7%");
$template = new HTMLTemplate("data/admin/value_template/list.html");
$paramquery = $_GET;
$paramquery['action'] = "add";
unset($paramquery['nextpage']);
$params = http_build_query($paramquery, '', '&');
$template->set_var("add_params", $params);
$template->set_var("list", $list->get_list());
$template->output();
}
示例13: home
public static function home()
{
$list = new List_IO("ProjectAdminStatus", "ajax.php?nav=project", "admin_project_status_list_status", "admin_project_status_count_status", "0", "ProjectAdminStatus");
$list->add_column(Language::get_message("ProjectGeneralListColumnID", "general"), "id", true, null);
$list->add_column(Language::get_message("ProjectGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("ProjectGeneralListColumnEdit", "general"), "edit", false, "15%");
$list->add_column(Language::get_message("ProjectGeneralListColumnDelete", "general"), "delete", false, "15%");
$template = new HTMLTemplate("project/admin/project_status/list.html");
$paramquery = $_GET;
$paramquery['action'] = "add";
unset($paramquery['nextpage']);
$params = http_build_query($paramquery, '', '&');
$template->set_var("add_params", $params);
$template->set_var("list", $list->get_list());
$template->output();
}
示例14: home
public static function home()
{
if ($_GET['runid']) {
$type_id = $_GET['runid'];
} else {
$type_id = 1;
}
$argument_array = array();
$argument_array[0] = "type_id";
$argument_array[1] = $type_id;
$list = new List_IO("BaseAdminSystemLog", "ajax.php?nav=base.admin", "admin_list_system_log", "admin_count_system_log", $argument_array, "BaseAdminSystemLog");
$list->add_column(Language::get_message("BaseGeneralListColumnUser", "general"), "user", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnDateTime", "general"), "datetime", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnIP", "general"), "ip", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnInfo", "general"), "info", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnFile", "general"), "file", true, null);
$template = new HTMLTemplate("base/admin/system_log/list.html");
$result = array();
$counter = 0;
$type_array = SystemLog::list_types();
if (is_array($type_array) and count($type_array) >= 1) {
foreach ($type_array as $key => $value) {
if ($type_id == $value) {
$result[$counter]['selected'] = "selected='selected'";
} else {
$result[$counter]['selected'] = "";
}
$result[$counter]['value'] = $value;
$result[$counter]['content'] = SystemLog::get_type_name($value);
$counter++;
}
}
$template->set_var("option", $result);
$result = array();
$counter = 0;
foreach ($_GET as $key => $value) {
if ($key != "runid") {
$result[$counter]['value'] = $value;
$result[$counter]['key'] = $key;
$counter++;
}
}
$template->set_var("get", $result);
$template->set_var("list", $list->get_list());
$template->output();
}
示例15: list_batches
public static function list_batches()
{
global $user;
$list = new List_IO("BaseBatchList", "ajax.php?nav=base", "batch_list_batches", "batch_count_batches", $argument_array, "BatchList");
$list->add_column("", "symbol", false, "16px");
$list->add_column(Language::get_message("BaseGeneralListColumnName", "general"), "name", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnStatus", "general"), "status", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnUser", "general"), "user", true, null);
$list->add_column(Language::get_message("BaseGeneralListColumnCreatedAt", "general"), "created_at", true, null);
$template = new HTMLTemplate("base/batch/list.html");
if ($user->is_admin() and Batch::get_type_id_by_internal_name("TEST") != null) {
$template->set_var("test_batch", true);
} else {
$template->set_var("test_batch", false);
}
$template->set_var("list", $list->get_list());
$template->output();
}