1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Config</title>
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
<link rel="stylesheet" title="style" type="text/css" href="../style.css" media="all" >
11
<p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents"><<</a></b></p>
12
<h1>Bugzilla::Config</h1>
13
<div class='indexgroup'>
14
<ul class='indexList indexList1'>
15
<li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
16
<li class='indexItem indexItem1'><a href='#SYNOPSIS'>SYNOPSIS</a>
17
<li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
18
<li class='indexItem indexItem1'><a href='#FUNCTIONS'>FUNCTIONS</a>
19
<ul class='indexList indexList2'>
20
<li class='indexItem indexItem2'><a href='#Parameters'>Parameters</a>
25
<h1><a class='u' href='#___top' title='click to go to top of document'
29
<p>Bugzilla::Config - Configuration parameters for Bugzilla</p>
31
<h1><a class='u' href='#___top' title='click to go to top of document'
35
<pre class="code"> # Administration functions
36
use Bugzilla::Config qw(:admin);
39
SetParam($param, $value);
42
<h1><a class='u' href='#___top' title='click to go to top of document'
46
<p>This package contains ways to access Bugzilla configuration parameters.</p>
48
<h1><a class='u' href='#___top' title='click to go to top of document'
52
<h2><a class='u' href='#___top' title='click to go to top of document'
56
<p>Parameters can be set, retrieved, and updated.</p>
59
<dt><a name="SetParam($name,_$value)"
60
><code class="code">SetParam($name, $value)</code></a></dt>
63
<p>Sets the param named $name to $value. Values are checked using the checker function for the given param if one exists.</p>
65
<dt><a name="update_params()"
66
><code class="code">update_params()</code></a></dt>
69
<p>Updates the parameters, by transitioning old params to new formats, setting defaults for new params, and removing obsolete ones. Used by <em class="code">checksetup.pl</em> in the process of an installation or upgrade.</p>
71
<p>Prints out information about what it's doing, if it makes any changes.</p>
73
<p>May prompt the user for input, if certain required parameters are not specified.</p>
75
<dt><a name="write_params($params)"
76
><code class="code">write_params($params)</code></a></dt>
79
<p>Description: Writes the parameters to disk.</p>
81
<p>Params: <code class="code">$params</code> (optional) - A hashref to write to the disk instead of <code class="code">Bugzilla-</code>params>. Used only by <code class="code">update_params</code>.</p>
83
<p>Returns: nothing</p>
85
<dt><a name="read_param_file()"
86
><code class="code">read_param_file()</code></a></dt>
89
<p>Description: Most callers should never need this. This is used by <code class="code">Bugzilla-</code>params> to directly read <code class="code">$datadir/params</code> and load it into memory. Use <code class="code">Bugzilla-</code>params> instead.</p>
93
<p>Returns: A hashref containing the current params in <code class="code">$datadir/params</code>.</p>
96
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p>