[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/inherit/error_handler.c</h2>
This is a handler to keep track of errors, make adding them and querying
them easier.<p>Written by Pinkfish<p>Started Mon Jun 17 17:28:04 PDT 2002
<h2>Includes</h2>
This class includes the following files /include/player_handler.h, /include/db.h, /include/cron_handler.h, /include/error_handler.h, /include/playerinfo.h and /include/board.h<h2>Method index</h2>
<ul>
<li><a href="#build_sql_query">build_sql_query</a>(string, class error_query)<br/>
This method builds an sql query from the input query.
<li><a href="#build_sql_update">build_sql_update</a>(int, string, mixed)<br/>
This method builds an sql update from the given inputs.
<li><a href="#check_for_stats_update">check_for_stats_update</a>()<br/>
This method checks to see if any of the stats need to be
updated or not.
<li><a href="#clean_error_handler">clean_error_handler</a>()<li><a href="#create_error_comment">create_error_comment</a>(mapping)<br/>
This method creates the error comment from the input mapping.
<li><a href="#create_error_complete">create_error_complete</a>(class error_details)<br/>
This method creates the complete error class from the error details
passed in.
<li><a href="#create_error_details">create_error_details</a>(mapping)<br/>
This method creates the error details from the return data.
<li><a href="#create_error_forward">create_error_forward</a>(mapping)<br/>
This method creates the error forward from the input mapping.
<li><a href="#create_error_replies">create_error_replies</a>(mapping)<br/>
This method creates the error reply class from the sql query.
<li><a href="#create_error_summary">create_error_summary</a>(mapping)<br/>
This method creates the error summary from the input mapping.
<li><a href="#do_add_error_reply">do_add_error_reply</a>(int, string, string, string, string)<br/>
This method adds an error reply into the system.
<li><a href="#do_assign_bug_to">do_assign_bug_to</a>(int, string, function)<br/>
This method changes who the bug is assigned to.
<li><a href="#do_change_category">do_change_category</a>(int, string, function)<br/>
This method changes the category of the bug.
<li><a href="#do_change_status">do_change_status</a>(int, string, int, string, string, string, function)<br/>
This method changes the status of the bug, it also automaticaly
sends a message to the person who reported the bug and who the bug
is assigned to if someone else changes it.
<li><a href="#do_change_type">do_change_type</a>(int, string, function)<br/>
This method changes the type of the bug.
<li><a href="#do_comment">do_comment</a>(int, string, string, function)<br/>
This method adds a comment into the database.
<li><a href="#do_error_replies">do_error_replies</a>(string, int, function)<br/>
This method looks for all the error replies for the specific recipient.
<li><a href="#do_forward">do_forward</a>(int, string, string, function)<br/>
This method changes the status of the bug, it also automaticaly
sends a message to the person who reported the bug and who the bug
is assigned to if someone else changes it.
<li><a href="#do_query_bug_details">do_query_bug_details</a>(int, function)<br/>
This method sets up a call to return the details of the error.
<li><a href="#do_query_bug_summary">do_query_bug_summary</a>(class error_query, function)<br/>
This method sets up a query for the specific data, this returns the
bug summary for all the found bugs.
<li><a href="#do_query_multiple_bug_details">do_query_multiple_bug_details</a>(class error_query, function)<br/>
This method sets up a call to return the details of the error.
<li><a href="#do_query_open_bugs_by_reporter">do_query_open_bugs_by_reporter</a>(string, function)<br/>
This returns the bug summary for all the open bugs associated with
the specified reporter.
<li><a href="#do_query_open_bugs_for_fname">do_query_open_bugs_for_fname</a>(string, function)<br/>
This returns the bug summary for all the open bugs associated with
the specified file.
<li><a href="#do_query_open_bugs_in_dir">do_query_open_bugs_in_dir</a>(string, function, int)<br/>
This method finds the bug summary for all the open bugs in the
specified directory.
<li><a href="#do_status_error_reply">do_status_error_reply</a>(int, string, function)<br/>
This method sets the error reply status to something useful.
<li><a href="#do_this_update">do_this_update</a>(int, int)<li><a href="#do_update_directory_assignment">do_update_directory_assignment</a>(string, string, string, function)<br/>
This method is called when a directory assignment is changed and the main
person responsible is changed.
<li><a href="#finish_comments">finish_comments</a>(int, mixed, function, class error_complete *, string, string)<br/>
This method updates the comments based on the query results.
<li><a href="#finish_details">finish_details</a>(int, mixed, function, string, int)<br/>
This method finishes a details based query.
<li><a href="#finish_details_error_replies">finish_details_error_replies</a>(int, mixed, function, class error_complete *, string, string)<br/>
This method updates the comments based on the query results.
<li><a href="#finish_error_replies">finish_error_replies</a>(int, mixed, function, string)<br/>
This method finishes doing a reply lookup.
<li><a href="#finish_forward_query">finish_forward_query</a>(int, mixed, function, string, string)<br/>
This method finishes a details based query.
<li><a href="#finish_forwards">finish_forwards</a>(int, mixed, function, class error_complete *, string)<br/>
This method updates the comments based on the query results.
<li><a href="#finish_status_query">finish_status_query</a>(int, mixed, function, string, int, string, string, string)<br/>
This sends the bug reply if needed when the bug status is
changed.
<li><a href="#finish_summary">finish_summary</a>(int, mixed, function, string)<br/>
This method finishes a summary based query.
<li><a href="#finish_update">finish_update</a>(int, mixed, function, string)<br/>
This method finishes an update based query.
<li><a href="#post_weekly_report">post_weekly_report</a>(int)<br/>
This method posts the weekly report to the correct boards so we can
see what exciting things the bugs have been doing over the last week.
<li><a href="#send_bug_reply_notify">send_bug_reply_notify</a>(string, string)<br/>
This method sets up the bug reply insect to notify the players about
the reply.
<li><a href="#setup_error_handler">setup_error_handler</a>(string, string, string)<br/>
This method sets up the access permissions to use for accessing
the database.
<li><a href="#update_bugs_ideas_typos">update_bugs_ideas_typos</a>()<li><a href="#update_four_weekly_stats">update_four_weekly_stats</a>(int)<br/>
Update stats on an approximately monthly basis.
<li><a href="#update_monthly_periods_from">update_monthly_periods_from</a>(int)<li><a href="#update_weekly_stats">update_weekly_stats</a>(int)<br/>
Update weekly stats.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="build_sql_update">
build_sql_update</a><pre class="autodocfuncdef">
string build_sql_update(int id,
                        string field,
                        mixed value)
</pre><dd><br />
This method builds an sql update from the given inputs.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the bug to update<br />
field - the field to update<br />
value - the new value of the field
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="check_for_stats_update">
check_for_stats_update</a><pre class="autodocfuncdef">
void check_for_stats_update()
</pre><dd><br />
This method checks to see if any of the stats need to be
updated or not.
<br />

<dt class="autodocfuncname"><a name="clean_error_handler">
clean_error_handler</a><pre class="autodocfuncdef">
void clean_error_handler()
</pre>
<dt class="autodocfuncname"><a name="create_error_comment">
create_error_comment</a><pre class="autodocfuncdef">
class error_comment create_error_comment(mapping map)
</pre><dd><br />
This method creates the error comment from the input mapping.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
map - the mapping to create the comment from<br />
<br />
<dd><b>Returns:</b>
<br />the error comment class
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="create_error_complete">
create_error_complete</a><pre class="autodocfuncdef">
class error_complete create_error_complete(class error_details details)
</pre><dd><br />
This method creates the complete error class from the error details
passed in.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
details - the details to make the complete error from
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="create_error_details">
create_error_details</a><pre class="autodocfuncdef">
class error_details create_error_details(mapping map)
</pre><dd><br />
This method creates the error details from the return data.
<br />

<dt class="autodocfuncname"><a name="create_error_forward">
create_error_forward</a><pre class="autodocfuncdef">
class error_forward create_error_forward(mapping map)
</pre><dd><br />
This method creates the error forward from the input mapping.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
map - the mapping to create the forward from<br />
<br />
<dd><b>Returns:</b>
<br />the error forward class
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="create_error_replies">
create_error_replies</a><pre class="autodocfuncdef">
class error_replies create_error_replies(mapping map)
</pre><dd><br />
This method creates the error reply class from the sql query.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
map - the mapping to convert to the class<br />
<br />
<dd><b>Returns:</b>
<br />the nice new error reply class
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="create_error_summary">
create_error_summary</a><pre class="autodocfuncdef">
class error_summary create_error_summary(mapping map)
</pre><dd><br />
This method creates the error summary from the input mapping.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
map - the mapping to create the summary from<br />
<br />
<dd><b>Returns:</b>
<br />the error summary class
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_add_error_reply">
do_add_error_reply</a><pre class="autodocfuncdef">
int do_add_error_reply(int bug_id,
                       string from,
                       string to,
                       string subject,
                       string message)
</pre><dd><br />
This method adds an error reply into the system.  It is used by the
bug replies system to add the replies.
<br />

<dt class="autodocfuncname"><a name="do_assign_bug_to">
do_assign_bug_to</a><pre class="autodocfuncdef">
int do_assign_bug_to(int id,
                     string assigned_to,
                     function finished)
</pre><dd><br />
This method changes who the bug is assigned to.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the bug to change<br />
assigned_to - the person it is assigned to<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_change_category">
do_change_category</a><pre class="autodocfuncdef">
int do_change_category(int id,
                       string category,
                       function finished)
</pre><dd><br />
This method changes the category of the bug.  The category is in the set
'room', 'object', 'help', 'ritual', 'spell', 'command', 'general'.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the bug to update<br />
category - the new category of the bug<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_change_status">
do_change_status</a><pre class="autodocfuncdef">
int do_change_status(int id,
                     string status,
                     int nomail,
                     string subject,
                     string user,
                     string message,
                     function finished)
</pre><dd><br />
This method changes the status of the bug, it also automaticaly
sends a message to the person who reported the bug and who the bug
is assigned to if someone else changes it.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the bug to change<br />
status - the new status of the bug<br />
nomail - dont send any mail<br />
user - the user who is making the change<br />
subject - the subject of the mail<br />
message - the main body of the mail<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure and 1 on success
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_change_type">
do_change_type</a><pre class="autodocfuncdef">
int do_change_type(int id,
                   string type,
                   function finished)
</pre><dd><br />
This method changes the type of the bug.  The type is in the set
'bug', 'typo', 'idea'.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the bug to update<br />
type - the new type of the bug<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_comment">
do_comment</a><pre class="autodocfuncdef">
int do_comment(int id,
               string user,
               string comment,
               function finished)
</pre><dd><br />
This method adds a comment into the database.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the bug to comment on<br />
user - the user making the comment<br />
comment - the comment to make<br />
finished - the finished function
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_error_replies">
do_error_replies</a><pre class="autodocfuncdef">
int do_error_replies(string recipient,
                     int only_new,
                     function finished)
</pre><dd><br />
This method looks for all the error replies for the specific recipient.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
recipient - the recipient<br />
only_new - only new messages<br />
finished - the function to call on finishing
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_forward">
do_forward</a><pre class="autodocfuncdef">
int do_forward(int id,
               string user,
               string dir,
               function finished)
</pre><dd><br />
This method changes the status of the bug, it also automaticaly
sends a message to the person who reported the bug and who the bug
is assigned to if someone else changes it.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the bug to change<br />
user - the user<br />
dir - the directory<br />
<br />
<dd><b>Returns:</b>
<br />0 on failure and 1 on success
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_query_bug_details">
do_query_bug_details</a><pre class="autodocfuncdef">
int do_query_bug_details(int bug_id,
                         function finished)
</pre><dd><br />
This method sets up a call to return the details of the error.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
bug_id - the id of the bug to get the details from<br />
finished - the function to call when things are finished<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_query_bug_summary">
do_query_bug_summary</a><pre class="autodocfuncdef">
int do_query_bug_summary(class error_query query,
                         function finished)
</pre><dd><br />
This method sets up a query for the specific data, this returns the
bug summary for all the found bugs.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
query - the class to use for the query<br />
finished - the function to call when things are finished<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_query_multiple_bug_details">
do_query_multiple_bug_details</a><pre class="autodocfuncdef">
int do_query_multiple_bug_details(class error_query query,
                                  function finished)
</pre><dd><br />
This method sets up a call to return the details of the error.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
bug_id - the id of the bug to get the details from<br />
finished - the function to call when things are finished<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_query_open_bugs_by_reporter">
do_query_open_bugs_by_reporter</a><pre class="autodocfuncdef">
int do_query_open_bugs_by_reporter(string reporter,
                                   function finished)
</pre><dd><br />
This returns the bug summary for all the open bugs associated with
the specified reporter.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
reporter - the reporter to find the bugs for<br />
finished - the function to call when things are finished<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_query_open_bugs_for_fname">
do_query_open_bugs_for_fname</a><pre class="autodocfuncdef">
int do_query_open_bugs_for_fname(string fname,
                                 function finished)
</pre><dd><br />
This returns the bug summary for all the open bugs associated with
the specified file.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
fname - the file name<br />
finished - the function to call when things are finished<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_query_open_bugs_in_dir">
do_query_open_bugs_in_dir</a><pre class="autodocfuncdef">
int do_query_open_bugs_in_dir(string dir,
                              function finished,
                              int recursive)
</pre><dd><br />
This method finds the bug summary for all the open bugs in the
specified directory.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
dir - the directory to find the open bugs in<br />
finished - the function to call when things are finished<br />
recursive - look for the bugs recursively<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_status_error_reply">
do_status_error_reply</a><pre class="autodocfuncdef">
int do_status_error_reply(int id,
                          string status,
                          function finished)
</pre><dd><br />
This method sets the error reply status to something useful.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
id - the id of the error reply<br />
status - the new status<br />
finished - the finished fuinction<br />
<br />
<dd><b>Returns:</b>
<br />1 if the setup is successful, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_this_update">
do_this_update</a><pre class="autodocfuncdef">
void do_this_update(int weekend,
                    int weekstart)
</pre>
<dt class="autodocfuncname"><a name="do_update_directory_assignment">
do_update_directory_assignment</a><pre class="autodocfuncdef">
int do_update_directory_assignment(string old_person,
                                   string new_person,
                                   string directory,
                                   function callback)
</pre><dd><br />
This method is called when a directory assignment is changed and the main
person responsible is changed.  All the reports in the specific directory
assigned to the old person or assigned to NULL will be updated to be
assigned to the new person.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
old_person - old person<br />
new_person - new person responsible<br />
directory - the directory<br />
callback - where to call back with results<br />
<br />
<dd><b>Returns:</b>
<br />1 if the call was successful, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_comments">
finish_comments</a><pre class="autodocfuncdef">
void finish_comments(int type,
                     mixed data,
                     function finished,
                     class error_complete * errors,
                     string ids,
                     string query)
</pre><dd><br />
This method updates the comments based on the query results.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - type type<br />
fdata - the return data from the query<br />
function - finsiished the finished function<br />
errors - the errors results we are updating<br />
query - the ids list we are using
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_details">
finish_details</a><pre class="autodocfuncdef">
void finish_details(int type,
                    mixed data,
                    function finished,
                    string query,
                    int no_extra)
</pre><dd><br />
This method finishes a details based query.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - the type returned (error etc)<br />
data - the data returned<br />
finished - the function to call on finish<br />
no_extra - no extra details
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_details_error_replies">
finish_details_error_replies</a><pre class="autodocfuncdef">
void finish_details_error_replies(int type,
                                  mixed data,
                                  function finished,
                                  class error_complete * errors,
                                  string ids,
                                  string query)
</pre><dd><br />
This method updates the comments based on the query results.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - type type<br />
fdata - the return data from the query<br />
function - finsiished the finished function<br />
errors - the errors results we are updating<br />
query - the ids list we are using
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_error_replies">
finish_error_replies</a><pre class="autodocfuncdef">
void finish_error_replies(int type,
                          mixed data,
                          function finished,
                          string query)
</pre><dd><br />
This method finishes doing a reply lookup.
<br />

<dt class="autodocfuncname"><a name="finish_forward_query">
finish_forward_query</a><pre class="autodocfuncdef">
void finish_forward_query(int type,
                          mixed data,
                          function finished,
                          string user,
                          string newdir)
</pre><dd><br />
This method finishes a details based query.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - the type returned (error etc)<br />
data - the data returned<br />
finished - the function to call on finish
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_forwards">
finish_forwards</a><pre class="autodocfuncdef">
void finish_forwards(int type,
                     mixed data,
                     function finished,
                     class error_complete * errors,
                     string query)
</pre><dd><br />
This method updates the comments based on the query results.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - type type<br />
fdata - the return data from the query<br />
function - finsiished the finished function<br />
errors - the errors results we are updating<br />
query - the ids list we are using
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_status_query">
finish_status_query</a><pre class="autodocfuncdef">
void finish_status_query(int type,
                         mixed data,
                         function finished,
                         string status,
                         int nomail,
                         string user,
                         string subject,
                         string message)
</pre><dd><br />
This sends the bug reply if needed when the bug status is
changed.  This needs to be caught out as a special case to deal
with sending the replies when nessessary.
<br />

<dt class="autodocfuncname"><a name="finish_summary">
finish_summary</a><pre class="autodocfuncdef">
void finish_summary(int type,
                    mixed data,
                    function finished,
                    string query)
</pre><dd><br />
This method finishes a summary based query.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - the type returned (error etc)<br />
data - the data returned<br />
finished - the function to call on finish
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="finish_update">
finish_update</a><pre class="autodocfuncdef">
void finish_update(int type,
                   mixed data,
                   function finished,
                   string query)
</pre><dd><br />
This method finishes an update based query.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - the type returned (error etc)<br />
data - the data returned<br />
finished - the function to call on finish
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="post_weekly_report">
post_weekly_report</a><pre class="autodocfuncdef">
void post_weekly_report(int weekend)
</pre><dd><br />
This method posts the weekly report to the correct boards so we can
see what exciting things the bugs have been doing over the last week.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
weekend - the weekend to post for
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="send_bug_reply_notify">
send_bug_reply_notify</a><pre class="autodocfuncdef">
void send_bug_reply_notify(string from,
                           string to)
</pre><dd><br />
This method sets up the bug reply insect to notify the players about
the reply.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
from - the person sent from<br />
to - the person sent to
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="update_bugs_ideas_typos">
update_bugs_ideas_typos</a><pre class="autodocfuncdef">
void update_bugs_ideas_typos()
</pre>
<dt class="autodocfuncname"><a name="update_monthly_periods_from">
update_monthly_periods_from</a><pre class="autodocfuncdef">
void update_monthly_periods_from(int start)
</pre>
</dl>
<h2>Protected Functions</h2>
These are functions that only objects inheriting the class can access.<p>
<dl>
<dt class="autodocfuncname"><a name="build_sql_query">
build_sql_query</a><pre class="autodocfuncdef">
string build_sql_query(string select_rows,
                       class error_query query)
</pre><dd><br />
This method builds an sql query from the input query.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
query - the input query<br />
<br />
<dd><b>Returns:</b>
<br />an sql string query
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="setup_error_handler">
setup_error_handler</a><pre class="autodocfuncdef">
void setup_error_handler(string user,
                         string db,
                         string password)
</pre><dd><br />
This method sets up the access permissions to use for accessing
the database.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the user to use<br />
db - the database to use<br />
password - the password to use
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="update_four_weekly_stats">
update_four_weekly_stats</a><pre class="autodocfuncdef">
void update_four_weekly_stats(int monthend)
</pre><dd><br />
Update stats on an approximately monthly basis.
<br />

<dt class="autodocfuncname"><a name="update_weekly_stats">
update_weekly_stats</a><pre class="autodocfuncdef">
void update_weekly_stats(int weekend)
</pre><dd><br />
Update weekly stats.  This updates all the tables needed to generate the
weekly statistics for the bug reports.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
weekend - the end of the week
<br />
<br />
<br /></dl>

</dl>
[an error occurred while processing this directive]

