summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 325112a)
raw | patch | inline | side by side (parent: 325112a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Mar 2008 10:09:08 +0000 (10:09 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Mar 2008 10:09:08 +0000 (10:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9424 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/class_msgPool.inc | patch | blob | history |
index d4dc3206959281c2f9990496c96ef5bd86380283..c3624c82ce520bbf1b45f879e1eb83c81c0a8521 100644 (file)
class msgPool
{
+ public static function dbconnect($name, $error= "", $dbinfo= "")
+ {
+ if ($error != ""){
+ $error= "<br><br><i>"._("Error").":</i> ".$error;
+ }
+ if ($dbinfo != ""){
+ $error= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
+ }
+ return (sprintf(_("Cannot connect to %s database!"), $name).$error);
+ }
+
+
+ public static function dbselect($name, $error= "", $dbinfo= "")
+ {
+ if ($error != ""){
+ $error= "<br><br><i>"._("Error").":</i> ".$error;
+ }
+ if ($dbinfo != ""){
+ $error= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
+ }
+ return (sprintf(_("Cannot select %s database!"), $name).$error);
+ }
+
+
+ public static function dbquery($name, $error= "", $dbinfo= "")
+ {
+ if ($error != ""){
+ $error= "<br><br><i>"._("Error").":</i> ".$error;
+ }
+ if ($dbinfo != ""){
+ $error= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
+ }
+ return (sprintf(_("Cannot query %s database!"), $name).$error);
+ }
+
public static function reserved($name)
{
{
/* Stylize example */
if ($example != ""){
- $example= "<br><br>"._("Example:")." ".$example;
+ $example= "<br><br><i>"._("Example").":</i> ".$example;
}
/* If validChars are posted, take data and paint all invalid
{
return sprintf(_("Missing %s PHP extension!"), $name);
}
+
}