200 lines
10 KiB
HTML
200 lines
10 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>phpcompta: Own Class Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.4.4 -->
|
|
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
|
|
<h1>Own Class Reference</h1><!-- doxytag: class="Own" -->Class to manage the company parameter (address, name...).
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOwn.html#a0">Own</a> ($p_cn)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOwn.html#a1">UpdateRow</a> ($p_attr)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Update a row. <a href="#a1"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOwn.html#a2">Save</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">save data <a href="#a2"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOwn.html#o0">$db</a></td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Class to manage the company parameter (address, name...).
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="class__own_8php-source.html#l00028">28</a> of file <a class="el" href="class__own_8php-source.html">class_own.php</a>.<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="a0"></a><!-- doxytag: member="Own::Own" ref="a0" args="($p_cn)" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">Own::Own </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>p_cn</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="class__own_8php-source.html#l00031">31</a> of file <a class="el" href="class__own_8php-source.html">class_own.php</a>.
|
|
<p>
|
|
References <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, <a class="el" href="argenta__be_8inc_8php-source.html#l00044">$row</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.<div class="fragment"><pre class="fragment"><a name="l00031"></a>00031 {
|
|
<a name="l00032"></a>00032 $this->db=$p_cn;
|
|
<a name="l00033"></a>00033 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($p_cn,<span class="stringliteral">"select * from parameter where pr_id like 'MY_%'"</span>);
|
|
<a name="l00034"></a>00034 <span class="keywordflow">for</span> ($i = 0;$i < pg_NumRows($Res);$i++) {
|
|
<a name="l00035"></a>00035 <a class="code" href="argenta__be_8inc_8php.html#a2">$row</a>=pg_fetch_array($Res,$i);
|
|
<a name="l00036"></a>00036 $key=<a class="code" href="argenta__be_8inc_8php.html#a2">$row</a>['pr_id'];
|
|
<a name="l00037"></a>00037 $elt=<a class="code" href="argenta__be_8inc_8php.html#a2">$row</a>['pr_value'];
|
|
<a name="l00038"></a>00038 <span class="comment">// store value here</span>
|
|
<a name="l00039"></a>00039 $this->{<span class="stringliteral">"$key"</span>}=$elt;
|
|
<a name="l00040"></a>00040 }
|
|
<a name="l00041"></a>00041
|
|
<a name="l00042"></a>00042 }
|
|
</pre></div>
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="a2"></a><!-- doxytag: member="Own::Save" ref="a2" args="()" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">Own::Save </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
save data
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="class__own_8php-source.html#l00062">62</a> of file <a class="el" href="class__own_8php-source.html">class_own.php</a>.
|
|
<p>
|
|
References <a class="el" href="parametre_8php-source.html#l00160">MY_COMMUNE</a>, <a class="el" href="parametre_8php-source.html#l00159">MY_CP</a>, <a class="el" href="parametre_8php-source.html#l00162">MY_FAX</a>, <a class="el" href="parametre_8php-source.html#l00155">MY_NAME</a>, <a class="el" href="parametre_8php-source.html#l00158">MY_NUMBER</a>, <a class="el" href="parametre_8php-source.html#l00163">MY_PAYS</a>, <a class="el" href="parametre_8php-source.html#l00157">MY_STREET</a>, <a class="el" href="parametre_8php-source.html#l00161">MY_TEL</a>, and <a class="el" href="parametre_8php-source.html#l00156">MY_TVA</a>.<div class="fragment"><pre class="fragment"><a name="l00062"></a>00062 {
|
|
<a name="l00063"></a>00063 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a8">MY_NAME</a>');
|
|
<a name="l00064"></a>00064 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a9">MY_TVA</a>');
|
|
<a name="l00065"></a>00065 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a10">MY_STREET</a>');
|
|
<a name="l00066"></a>00066 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a11">MY_NUMBER</a>');
|
|
<a name="l00067"></a>00067 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a12">MY_CP</a>');
|
|
<a name="l00068"></a>00068 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a14">MY_TEL</a>');
|
|
<a name="l00069"></a>00069 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a16">MY_PAYS</a>');
|
|
<a name="l00070"></a>00070 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a13">MY_COMMUNE</a>');
|
|
<a name="l00071"></a>00071 $this-><a class="code" href="classOwn.html#a1">UpdateRow</a>('<a class="code" href="parametre_8php.html#a15">MY_FAX</a>');
|
|
<a name="l00072"></a>00072
|
|
<a name="l00073"></a>00073 }
|
|
</pre></div>
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="Own::UpdateRow" ref="a1" args="($p_attr)" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">Own::UpdateRow </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>p_attr</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Update a row.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>give</em> </td><td>the attribut name</td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="class__own_8php-source.html#l00051">51</a> of file <a class="el" href="class__own_8php-source.html">class_own.php</a>.
|
|
<p>
|
|
References <a class="el" href="ac__common_8php-source.html#l00206">FormatString()</a>.<div class="fragment"><pre class="fragment"><a name="l00051"></a>00051 {
|
|
<a name="l00052"></a>00052 $value=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($this->{<span class="stringliteral">"$p_attr"</span>});
|
|
<a name="l00053"></a>00053 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this->db,<span class="stringliteral">"update parameter set pr_value='$value' where pr_id='$p_attr'"</span>);
|
|
<a name="l00054"></a>00054 }
|
|
</pre></div>
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Field Documentation</h2>
|
|
<a class="anchor" name="o0"></a><!-- doxytag: member="Own::$db" ref="o0" args="" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">Own::$db </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="class__own_8php-source.html#l00029">29</a> of file <a class="el" href="class__own_8php-source.html">class_own.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="class__own_8php-source.html">class_own.php</a></ul>
|
|
</BODY>
|
|
</HTML>
|