本文整理汇总了PHP中MessageManager::echoAll方法的典型用法代码示例。如果您正苦于以下问题:PHP MessageManager::echoAll方法的具体用法?PHP MessageManager::echoAll怎么用?PHP MessageManager::echoAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageManager
的用法示例。
在下文中一共展示了MessageManager::echoAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: error_reporting
error_reporting(E_ALL);
}
// Check for running Ice with Murmur
try {
ServerInterface::getInstance();
} catch (Ice_UnknownLocalException $ex) {
MessageManager::addError(tr('error_noIce'));
MessageManager::echoAll();
exit;
}
if (isset($_GET['ajax'])) {
require_once MUMPHPI_MAINDIR . '/ajax/' . MUMPHPI_SECTION . '.ajax.php';
if (is_callable('Ajax_' . MUMPHPI_SECTION . '::' . $_GET['ajax'])) {
eval('Ajax_' . MUMPHPI_SECTION . '::' . $_GET['ajax'] . '();');
}
MessageManager::echoAll();
exit;
}
$serverId = isset($_GET['serverId']) ? intval($_GET['serverId']) : 1;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php
echo SettingsManager::getInstance()->getSiteTitle();
?>
</title>
<meta name="description" content="<?php
echo SettingsManager::getInstance()->getSiteDescription();
示例2: db_adminGroup_perms_edit
public static function db_adminGroup_perms_edit()
{
if (!PermissionManager::getInstance()->serverCanEditAdmins()) {
return;
}
// TODO: [security] perms should only hold the correct keys and boolean vals
$group = DBManager::getInstance()->updateAdminGroupPermissions(intval($_POST['gid']), $_POST['perms']);
MessageManager::echoAll();
}