NAME

DBI::Library::Database - Database interface for MySQL::Admin::GUI

SYNOPSIS

use DBI::Library::Database;

addMessage

my %message = (

     thread => $thread,

     title => $headline,

     body  => $body,

     thread => $thread,

     cat    => $cat,

     attach => $sra,

     format => $format,

     id => $id,

     user => $m_sUser,

     attach => $m_sFilename,

     ip => remote_addr(),


);

my $id = addMessage(\%message);

editMessage()

my %message = (

     thread => $thread,

     title => $headline,

     body  => $body,

     thread => $thread,

     cat    => $cat,

     attach => $sra,

     format => $format,

     id => $id,

     user => $m_sUser,

     attach => $m_sFilename,

     ip => remote_addr(),

);

editMessage(\%message);

reply

my %reply =(

     title => $headline,

     body => $body,

     id => $reply,

     user => $m_sUser,

     attach =>  $sra,

     format => $html,

     ip => remote_addr(),

);

reply(\%reply);

deleteMessage

$bool = $self->deleteMessage($table,$id);

readMenu()

@menu = $m_oDatabase->readMenu($sThread,$nRight,$nStart,$nEnd,$bRewrite);

rss()

$rss = $m_oDatabase->rss($thread,int start);

getName()

$name = $m_oDatabase->getName($m_sSid);

setSid

$m_sSidid = $m_oDatabase->setSid(name,pass);

checkSession

$bool = $m_oDatabase->checkSession($m_sUser,$m_sSid);

checkPass()

getAction

$hashref = $m_oDatabase->getAction($m_sAction);

getActionRight

$right = $m_oDatabase->getActionRight($m_sAction);

right()

$nRight = right($m_sAction,$m_sUsername);

userright()

userright(user);

topicright()

topicright(id);

catright()

catright('name|name2');

isMember

isMember($m_sUser);

checkt ob es den user bereits gibt.

hasAcount

hasAcount($email)

checkt ob es die email Adresse bereits gibt.

addUser

$m_oDatabase->addUser(user, pass);

rewrite()

enable or disable rewrite.

serverName()

set serverName.

floodtime()

set floodtime.

searchDB()

searchDB($query,$column,$table,$rigt,$start,$end);

regexp search in tabelle ...

fulltext()

@messages = fulltext(query,table);

fulltextsuche in tabelle ...

checkFlood

checked wann die letzte aktion der ip adresse war und erlaubt sie nur wenn midestens time zeit zur letzen aktion vergangen ist.

checkFlood(ip,optionaler abstand in sekunden )

checkFlood(remote_addr());

GetAutoIncrementValue()

GetAutoIncrementValue(table)

GetPrimaryKey()

liefert die primary_key(s) der tabelle zurueck

@array = GetPrimaryKey(table)

GetAutoIncrement()

liefert die auto_increment zeile zurueck

GetAutoIncrement(table)

fetch_string()

GetDataBases()

Gibt eine auswahl liste der Datenabanken zurueck

GetTables()

GetTables(name,selected )

TableCount4Db()

Gibt die anzahl der tabellen fuer die angegebene Datenbank zurueck.

GetCharacterSet()

gibt das Charset zu coalation zurueck.

GetCharacterSet(coalation);

GetEngines()

gibt die verfuegbaren Engines zurueck.

GetEngines(tabelle);

GetEngineForRow()

GetEngineForRow(tabelle, zeile);

GetNull()

gibt die NULL(NULL | not NULL) auswahlliste zurueck

GetNull(selected extra, slect_name);

GetExtra()

gibt die extra(auto_increment) auswahlliste zurueck

GetExtra(selected extra, slect_name);

GetTypes()

gibt die datentypen zurueck

GetTypes(selected type, slect_name);

GetColumnCollation()

gibt eine auswahlliste (select) zurueck.

GetColumnCollation( tabelle ,columne, name_select);

GetCollation()

$sel = GetCollation(name);

GetCharset()

$sel = GetCharset(name,table);

GetAttrs

$sel = GetAttrs($tbl, $field, $m_hUniqueAttrs );

GetColumns

$sel = GetColumns($tbl ,$name,$selected);

getSelf()

see HTML::Menu::TreeView::getSelf

prepare()

execute()

fetch()

SEE ALSO

MySQL::Admin::GUI DBI DBI::Library

AUTHOR

Dirk Lindner <lze@cpan.org>

LICENSE

Copyright (C) 2005-2009 by Hr. Dirk Lindner

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.