1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\r
4 <link href="style.css" REL="stylesheet" TYPE="text/css" MEDIA="screen">
\r
5 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
\r
6 <title>Kiriwrite Documentation - Developer Documentation - 3.3: loadsettings</title>
\r
9 <div class="menubarback">
\r
10 <div class="menubar">
\r
11 <span class="apptitle">Kiriwrite</span>
\r
12 <a href="index.html">Index</a> | <a href="user.html">User
\r
13 Documentation</a> | <a href="tutorial.html">Tutorial Documentation</a> |
\r
14 <a href="developer.html">Developer Documentation</a>
\r
17 <div class="pageinformation">
\r
18 <span class="pagetitle">3.3 loadsettings</span><br><br>
\r
20 Loads the settings needed for the database module.<br><br>
\r
22 <span class="heading">Parameters:</span><br><br>
\r
25 $kiriwrite_dbmodule->loadsettings(options);
\r
30 <span class="heading">Usage:</span><br><br>
\r
33 $kiriwrite_dbmodule->loadsettings({ Directory => "db", DateTime => "DD/MM/YY (hh:mm:ss)", Server => "localhost", Port => "3306", Protocol => "tcp", Database => "database", Username => "username", Password => "password", TablePrefix => "tableprefix" });
\r
39 Specifies the following options as a hash in any order.<br><br>
\r
41 <table class="infotable">
\r
43 <td class="tableheading">Value</td>
\r
44 <td class="tableheading">Description</td>
\r
47 <td class="tabledata">Directory</td>
\r
48 <td class="tabledata">Specifies the directory where the databases are stored.</td>
\r
51 <td class="tabledata">DateTime</td>
\r
52 <td class="tabledata">Specifies the date and time settings to use.</td>
\r
55 <td class="tabledata">Server</td>
\r
56 <td class="tabledata">Specifies the location of the server.</td>
\r
59 <td class="tabledata">Port</td>
\r
60 <td class="tabledata">Specifies the port number of the server.</td>
\r
63 <td class="tabledata">Protocol</td>
\r
64 <td class="tabledata">Specifies the protocol type to use.</td>
\r
67 <td class="tabledata">Database</td>
\r
68 <td class="tabledata">Specifies the name of the database to use.</td>
\r
71 <td class="tabledata">Username</td>
\r
72 <td class="tabledata">Specifies the username to use.</td>
\r
75 <td class="tabledata">Password</td>
\r
76 <td class="tabledata">Specifies the password to use.</td>
\r
79 <td class="tabledata">TablePrefix</td>
\r
80 <td class="tabledata">Specifies the table prefix to use.</td>
\r
86 Typically all the settings except for Directory are used by a server-based database module, while only the Directory and DateTime settings will be used by a file-based database module.
\r