457 lines
24 KiB
HTML
457 lines
24 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: parm_code 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>parm_code Class Reference</h1><!-- doxytag: class="parm_code" -->Manage the table parm_code which contains the custom parameter for the module accountancy.
|
||
<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="classparm__code.html#a0">parm_code</a> ($p_cn, $p_id=-1)</td></tr>
|
||
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#a1">LoadAll</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load all parmCode return an array of parm_code object. <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="classparm__code.html#a2">Save</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">update a parm_object into the database p_code is _not_ updatable <a href="#a2"></a><br></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#a3">Display</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Display an object, with the <p>
|
||
tag. <a href="#a3"></a><br></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#a4">Input</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Display a form to enter info about a parm_code object with the <p>
|
||
tag. <a href="#a4"></a><br></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#a5">Get</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Complete a parm_code object thanks the p_code. <a href="#a5"></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="classparm__code.html#o0">$db</a></td></tr>
|
||
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#o1">$p_code</a></td></tr>
|
||
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#o2">$p_value</a></td></tr>
|
||
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classparm__code.html#o3">$p_comment</a></td></tr>
|
||
|
||
</table>
|
||
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
Manage the table parm_code which contains the custom parameter for the module accountancy.
|
||
<p>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00030">30</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>.<hr><h2>Constructor & Destructor Documentation</h2>
|
||
<a class="anchor" name="a0"></a><!-- doxytag: member="parm_code::parm_code" ref="a0" args="($p_cn, $p_id=-1)" --><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">parm_code::parm_code </td>
|
||
<td class="md" valign="top">( </td>
|
||
<td class="md" nowrap valign="top">$ </td>
|
||
<td class="mdname" nowrap> <em>p_cn</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="md" nowrap align="right"></td>
|
||
<td class="md"></td>
|
||
<td class="md" nowrap>$ </td>
|
||
<td class="mdname" nowrap> <em>p_id</em> = <code>-1</code></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="md"></td>
|
||
<td class="md">) </td>
|
||
<td class="md" colspan="2"></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__parm__code_8php-source.html#l00036">36</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>.
|
||
<p>
|
||
References <a class="el" href="user__update_8php-source.html#l00032">$p_id</a>, and <a class="el" href="class__parm__code_8php-source.html#l00141">Get()</a>.
|
||
<p>
|
||
Referenced by <a class="el" href="class__parm__code_8php-source.html#l00052">LoadAll()</a>.<div class="fragment"><pre class="fragment"><a name="l00037"></a>00037 {
|
||
<a name="l00038"></a>00038 $this->db=$p_cn;
|
||
<a name="l00039"></a>00039 $this->p_code=<a class="code" href="user__update_8php.html#a1">$p_id</a>;
|
||
<a name="l00040"></a>00040 <span class="keywordflow">if</span> ( $p_id != -1 )
|
||
<a name="l00041"></a>00041 $this-><a class="code" href="classparm__code.html#a5">Get</a>();
|
||
<a name="l00042"></a>00042 }
|
||
</pre></div>
|
||
<p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<hr><h2>Member Function Documentation</h2>
|
||
<a class="anchor" name="a3"></a><!-- doxytag: member="parm_code::Display" ref="a3" 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">parm_code::Display </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>
|
||
Display an object, with the <p>
|
||
tag.
|
||
<p>
|
||
<dl compact><dt><b>Returns:</b></dt><dd>string</dd></dl>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00096">96</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>.
|
||
<p>
|
||
References <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>.<div class="fragment"><pre class="fragment"><a name="l00097"></a>00097 {
|
||
<a name="l00098"></a>00098 <a class="code" href="bank_8inc_8php.html#a29">$r</a>=<span class="stringliteral">""</span>;
|
||
<a name="l00099"></a>00099 <a class="code" href="bank_8inc_8php.html#a29">$r</a>.= '<TD>'.$this->p_code.'</TD>';
|
||
<a name="l00100"></a>00100 <a class="code" href="bank_8inc_8php.html#a29">$r</a>.= '<TD>'.$this->p_comment.'</TD>';
|
||
<a name="l00101"></a>00101 <a class="code" href="bank_8inc_8php.html#a29">$r</a>.= '<TD>'.$this->p_value.'</TD>';
|
||
<a name="l00102"></a>00102
|
||
<a name="l00103"></a>00103 <span class="keywordflow">return</span> <a class="code" href="bank_8inc_8php.html#a29">$r</a>;
|
||
<a name="l00104"></a>00104 }
|
||
</pre></div>
|
||
<p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="a5"></a><!-- doxytag: member="parm_code::Get" ref="a5" 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">parm_code::Get </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>
|
||
Complete a parm_code object thanks the p_code.
|
||
<p>
|
||
<dl compact><dt><b>Returns:</b></dt><dd>array</dd></dl>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00141">141</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.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#l00028">$row</a>, <a class="el" href="bank_8inc_8php-source.html#l00169">$sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="poste_8inc_8php-source.html#l00033">p_comment</a>, and <a class="el" href="poste_8inc_8php-source.html#l00034">p_value</a>.
|
||
<p>
|
||
Referenced by <a class="el" href="class__parm__code_8php-source.html#l00036">parm_code()</a>.<div class="fragment"><pre class="fragment"><a name="l00141"></a>00141 {
|
||
<a name="l00142"></a>00142 <span class="keywordflow">if</span> ( $this->p_code == -1 ) <span class="keywordflow">return</span> <span class="stringliteral">"p_code non initialis<69>"</span>;
|
||
<a name="l00143"></a>00143 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=sprintf(<span class="stringliteral">"select * from parm_code where p_code='%s' "</span>,
|
||
<a name="l00144"></a>00144 $this->p_code);
|
||
<a name="l00145"></a>00145 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this->db,$sql);
|
||
<a name="l00146"></a>00146
|
||
<a name="l00147"></a>00147 <span class="keywordflow">if</span> ( pg_NumRows($Res) == 0 ) <span class="keywordflow">return</span> 'INCONNU';
|
||
<a name="l00148"></a>00148 <a class="code" href="argenta__be_8inc_8php.html#a0">$row</a>= pg_fetch_array($Res,0);
|
||
<a name="l00149"></a>00149 $this-><a class="code" href="poste_8inc_8php.html#a2">p_value</a>=<a class="code" href="argenta__be_8inc_8php.html#a0">$row</a>['<a class="code" href="poste_8inc_8php.html#a2">p_value</a>'];
|
||
<a name="l00150"></a>00150 $this-><a class="code" href="poste_8inc_8php.html#a1">p_comment</a>=<a class="code" href="argenta__be_8inc_8php.html#a0">$row</a>['<a class="code" href="poste_8inc_8php.html#a1">p_comment</a>'];
|
||
<a name="l00151"></a>00151
|
||
<a name="l00152"></a>00152 }
|
||
</pre></div>
|
||
<p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="a4"></a><!-- doxytag: member="parm_code::Input" ref="a4" 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">parm_code::Input </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>
|
||
Display a form to enter info about a parm_code object with the <p>
|
||
tag.
|
||
<p>
|
||
<dl compact><dt><b>Returns:</b></dt><dd>string</dd></dl>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00112">112</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>.
|
||
<p>
|
||
References <a class="el" href="user__action__ven_8php-source.html#l00118">$comment</a>, <a class="el" href="send__poste__pdf_8php-source.html#l00044">$poste</a>, <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>, <a class="el" href="poste_8inc_8php-source.html#l00033">p_comment</a>, and <a class="el" href="poste_8inc_8php-source.html#l00034">p_value</a>.<div class="fragment"><pre class="fragment"><a name="l00113"></a>00113 {
|
||
<a name="l00114"></a>00114 <a class="code" href="user__action__ven_8php.html#a5">$comment</a>=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);
|
||
<a name="l00115"></a>00115 <a class="code" href="user__action__ven_8php.html#a5">$comment</a>->name='<a class="code" href="poste_8inc_8php.html#a1">p_comment</a>';
|
||
<a name="l00116"></a>00116 <a class="code" href="user__action__ven_8php.html#a5">$comment</a>->value=$this-><a class="code" href="poste_8inc_8php.html#a1">p_comment</a>;
|
||
<a name="l00117"></a>00117 $value=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);
|
||
<a name="l00118"></a>00118 $value->name='<a class="code" href="poste_8inc_8php.html#a2">p_value</a>';
|
||
<a name="l00119"></a>00119 $value->value=$this-><a class="code" href="poste_8inc_8php.html#a2">p_value</a>;
|
||
<a name="l00120"></a>00120 <a class="code" href="send__poste__pdf_8php.html#a2">$poste</a>=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);
|
||
<a name="l00121"></a>00121 <a class="code" href="send__poste__pdf_8php.html#a2">$poste</a>->SetReadOnly(<span class="keyword">true</span>);
|
||
<a name="l00122"></a>00122 <a class="code" href="send__poste__pdf_8php.html#a2">$poste</a>->name='p_code';
|
||
<a name="l00123"></a>00123 <a class="code" href="send__poste__pdf_8php.html#a2">$poste</a>->value=$this->p_code;
|
||
<a name="l00124"></a>00124 <a class="code" href="bank_8inc_8php.html#a29">$r</a>=<span class="stringliteral">""</span>;
|
||
<a name="l00125"></a>00125 <a class="code" href="bank_8inc_8php.html#a29">$r</a>.= '<TD>'.$poste->IOValue().'</TD>';
|
||
<a name="l00126"></a>00126 <a class="code" href="bank_8inc_8php.html#a29">$r</a>.= '<TD>'.$comment->IOValue().'</TD>';
|
||
<a name="l00127"></a>00127 <a class="code" href="bank_8inc_8php.html#a29">$r</a>.= '<TD>'.$value->IOValue().'</TD>';
|
||
<a name="l00128"></a>00128
|
||
<a name="l00129"></a>00129 <span class="keywordflow">return</span> <a class="code" href="bank_8inc_8php.html#a29">$r</a>;
|
||
<a name="l00130"></a>00130
|
||
<a name="l00131"></a>00131 }
|
||
</pre></div>
|
||
<p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="a1"></a><!-- doxytag: member="parm_code::LoadAll" ref="a1" 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">parm_code::LoadAll </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>
|
||
Load all parmCode return an array of parm_code object.
|
||
<p>
|
||
<dl compact><dt><b>Returns:</b></dt><dd>array</dd></dl>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00052">52</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>.
|
||
<p>
|
||
References <a class="el" href="recherche_8php-source.html#l00066">$array</a>, <a class="el" href="fiche__def_8inc_8php-source.html#l00062">$idx</a>, <a class="el" href="fiche__csv_8php-source.html#l00049">$o</a>, <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>, <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, <a class="el" href="bank_8inc_8php-source.html#l00169">$sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="class__parm__code_8php-source.html#l00036">parm_code()</a>.<div class="fragment"><pre class="fragment"><a name="l00052"></a>00052 {
|
||
<a name="l00053"></a>00053 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=<span class="stringliteral">"select * from parm_code order by p_code"</span>;
|
||
<a name="l00054"></a>00054 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this->db,$sql);
|
||
<a name="l00055"></a>00055 <a class="code" href="bank_8inc_8php.html#a29">$r</a>= pg_fetch_all($Res);
|
||
<a name="l00056"></a>00056 <a class="code" href="fiche__def_8inc_8php.html#a7">$idx</a>=0;
|
||
<a name="l00057"></a>00057 <a class="code" href="recherche_8php.html#a4">$array</a>=array();
|
||
<a name="l00058"></a>00058
|
||
<a name="l00059"></a>00059 <span class="keywordflow">if</span> ( $r === <span class="keyword">false</span> ) <span class="keywordflow">return</span> null;
|
||
<a name="l00060"></a>00060 foreach ($r as $row )
|
||
<a name="l00061"></a>00061 {
|
||
<a name="l00062"></a>00062 <a class="code" href="fiche__csv_8php.html#a5">$o</a>=<span class="keyword">new</span> <a class="code" href="classparm__code.html#a0">parm_code</a>($this->db,$row['p_code']);
|
||
<a name="l00063"></a>00063 <a class="code" href="recherche_8php.html#a4">$array</a>[<a class="code" href="fiche__def_8inc_8php.html#a7">$idx</a>]=<a class="code" href="fiche__csv_8php.html#a5">$o</a>;
|
||
<a name="l00064"></a>00064 <a class="code" href="fiche__def_8inc_8php.html#a7">$idx</a>++;
|
||
<a name="l00065"></a>00065 }
|
||
<a name="l00066"></a>00066
|
||
<a name="l00067"></a>00067 <span class="keywordflow">return</span> <a class="code" href="recherche_8php.html#a4">$array</a>;
|
||
<a name="l00068"></a>00068 }
|
||
</pre></div>
|
||
<p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="a2"></a><!-- doxytag: member="parm_code::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">parm_code::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>
|
||
update a parm_object into the database p_code is _not_ updatable
|
||
<p>
|
||
<dl compact><dt><b>Returns:</b></dt><dd>nothing</dd></dl>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00076">76</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>.
|
||
<p>
|
||
References <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, <a class="el" href="bank_8inc_8php-source.html#l00169">$sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="ac__common_8php-source.html#l00206">FormatString()</a>, <a class="el" href="poste_8inc_8php-source.html#l00033">p_comment</a>, and <a class="el" href="poste_8inc_8php-source.html#l00034">p_value</a>.<div class="fragment"><pre class="fragment"><a name="l00077"></a>00077 {
|
||
<a name="l00078"></a>00078 <span class="comment">// if p_code=="" nothing to save</span>
|
||
<a name="l00079"></a>00079 <span class="keywordflow">if</span> ( $this->p_code== -1) <span class="keywordflow">return</span>;
|
||
<a name="l00080"></a>00080 $this-><a class="code" href="poste_8inc_8php.html#a1">p_comment</a>=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($this->p_comment);
|
||
<a name="l00081"></a>00081 $this-><a class="code" href="poste_8inc_8php.html#a2">p_value</a>=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($this->p_value);
|
||
<a name="l00082"></a>00082 $this->p_code=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($this->p_code);
|
||
<a name="l00083"></a>00083 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=<span class="stringliteral">"update parm_code set "</span>.
|
||
<a name="l00084"></a>00084 <span class="stringliteral">"p_comment='"</span>.$this->p_comment.<span class="stringliteral">"' "</span>.
|
||
<a name="l00085"></a>00085 <span class="stringliteral">",p_value='"</span>.$this->p_value.<span class="stringliteral">"' "</span>.
|
||
<a name="l00086"></a>00086 <span class="stringliteral">"where p_code='"</span>.$this->p_code.<span class="stringliteral">"'"</span>;
|
||
<a name="l00087"></a>00087 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this->db,$sql);
|
||
<a name="l00088"></a>00088 }
|
||
</pre></div>
|
||
<p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<hr><h2>Field Documentation</h2>
|
||
<a class="anchor" name="o0"></a><!-- doxytag: member="parm_code::$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">parm_code::$db </td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table cellspacing="5" cellpadding="0" border="0">
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
|
||
<p>
|
||
database connection
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00031">31</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>. </td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="o1"></a><!-- doxytag: member="parm_code::$p_code" ref="o1" 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">parm_code::$p_code </td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table cellspacing="5" cellpadding="0" border="0">
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
|
||
<p>
|
||
parm_code.p_code primary key
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00032">32</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>. </td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="o3"></a><!-- doxytag: member="parm_code::$p_comment" ref="o3" 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">parm_code::$<a class="el" href="poste_8inc_8php.html#a1">p_comment</a> </td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table cellspacing="5" cellpadding="0" border="0">
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
|
||
<p>
|
||
<a class="el" href="poste_8inc_8php.html#a1">parm_code.p_comment</a>
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00034">34</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>. </td>
|
||
</tr>
|
||
</table>
|
||
<a class="anchor" name="o2"></a><!-- doxytag: member="parm_code::$p_value" ref="o2" 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">parm_code::$<a class="el" href="poste_8inc_8php.html#a2">p_value</a> </td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table cellspacing="5" cellpadding="0" border="0">
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
|
||
<p>
|
||
<a class="el" href="poste_8inc_8php.html#a2">parm_code.p_value</a>
|
||
<p>
|
||
Definition at line <a class="el" href="class__parm__code_8php-source.html#l00033">33</a> of file <a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a>. </td>
|
||
</tr>
|
||
</table>
|
||
<hr>The documentation for this class was generated from the following file:<ul>
|
||
<li><a class="el" href="class__parm__code_8php-source.html">class_parm_code.php</a></ul>
|
||
</BODY>
|
||
</HTML>
|