altocompta/doc/developper/html/debug_8php.html
2006-07-12 21:24:48 +00:00

93 lines
11 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: debug.php File 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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">include</a></div>
<h1>debug.php File Reference</h1>Debug procedure. <a href="#_details">More...</a>
<p>
<p>
<a href="debug_8php-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8php.html#a0">echo_debug</a> ($file, $line=&quot;&quot;, $msg=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">print debug <a href="#a0"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Debug procedure.
<p>
<p>
Definition in file <a class="el" href="debug_8php-source.html">debug.php</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="debug.php::echo_debug" ref="a0" args="($file, $line=&quot;&quot;, $msg=&quot;&quot;)" --><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">echo_debug </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>file</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>line</em> = <code>&quot;&quot;</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>msg</em> = <code>&quot;&quot;</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
print debug
<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>$file</em>&nbsp;</td><td>file name </td></tr>
<tr><td valign="top"></td><td valign="top"><em>what</em>&nbsp;</td><td>line </td></tr>
<tr><td valign="top"></td><td valign="top"><em>debugging</em>&nbsp;</td><td>msg</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="debug_8php-source.html#l00034">34</a> of file <a class="el" href="debug_8php-source.html">debug.php</a>.
<p>
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00038">AddFiche()</a>, <a class="el" href="form__inc_8php-source.html#l00267">AddForm()</a>, <a class="el" href="fiche__inc_8php-source.html#l00761">AddModele()</a>, <a class="el" href="class__fiche_8php-source.html#l00399">fiche::blank()</a>, <a class="el" href="class__user_8php-source.html#l00085">cl_user::Check()</a>, <a class="el" href="check__priv_8php-source.html#l00046">CheckJrn()</a>, <a class="el" href="class__user_8php-source.html#l00040">cl_user::cl_user()</a>, <a class="el" href="user__common_8php-source.html#l00069">ComputeTotalVat()</a>, <a class="el" href="user__common_8php-source.html#l00172">ComputeVat()</a>, <a class="el" href="class__action_8php-source.html#l00364">action::Confirm()</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, <a class="el" href="fiche__inc_8php-source.html#l00689">DefModele()</a>, <a class="el" href="user__common_8php-source.html#l00727">DeleteRapt()</a>, <a class="el" href="class__fiche_8php-source.html#l00461">fiche::Display()</a>, <a class="el" href="class__action_8php-source.html#l00101">action::Display()</a>, <a class="el" href="fiche__inc_8php-source.html#l01390">DisplayDetailModele()</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, <a class="el" href="fiche__inc_8php-source.html#l00225">EncodeFiche()</a>, <a class="el" href="form__inc_8php-source.html#l00034">EncodeForm()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="user__form__ach_8php-source.html#l00270">form_verify_input()</a>, <a class="el" href="user__form__ach_8php-source.html#l00044">FormAchInput()</a>, <a class="el" href="user__form__ven_8php-source.html#l00043">FormVenInput()</a>, <a class="el" href="class__document_8php-source.html#l00079">Document::Generate()</a>, <a class="el" href="class__fiche_8php-source.html#l00770">fiche::Get()</a>, <a class="el" href="class__action_8php-source.html#l00315">action::get()</a>, <a class="el" href="user__menu_8php-source.html#l00342">get_quick_key()</a>, <a class="el" href="postgres_8php-source.html#l00117">GetAllUser()</a>, <a class="el" href="postgres_8php-source.html#l00353">GetArray()</a>, <a class="el" href="class__fiche_8php-source.html#l00167">fiche::GetByQCode()</a>, <a class="el" href="fiche__inc_8php-source.html#l01313">GetClass()</a>, <a class="el" href="fiche__inc_8php-source.html#l01214">GetCreateAccount()</a>, <a class="el" href="jrn_8php-source.html#l00711">GetData()</a>, <a class="el" href="jrn_8php-source.html#l00973">GetDataJrnJrId()</a>, <a class="el" href="impress__inc_8php-source.html#l00423">GetDataJrnPdf()</a>, <a class="el" href="class__jrn_8php-source.html#l00321">jrn::GetDefLine()</a>, <a class="el" href="class__user_8php-source.html#l00256">cl_user::GetGlobalPref()</a>, <a class="el" href="fiche__inc_8php-source.html#l00462">GetNextFiche()</a>, <a class="el" href="fiche__inc_8php-source.html#l01450">GetParent()</a>, <a class="el" href="postgres_8php-source.html#l00147">GetPriv()</a>, <a class="el" href="impress__inc_8php-source.html#l00616">GetRappel()</a>, <a class="el" href="class__jrn_8php-source.html#l00065">jrn::GetRow()</a>, <a class="el" href="class__jrn_8php-source.html#l00243">jrn::GetRowSimple()</a>, <a class="el" href="impress__inc_8php-source.html#l00119">ImpHtml()</a>, <a class="el" href="class__fiche_8php-source.html#l00542">fiche::insert()</a>, <a class="el" href="class__user_8php-source.html#l00298">cl_user::insert_default_global_pref()</a>, <a class="el" href="user__common_8php-source.html#l00288">InsertJrn()</a>, <a class="el" href="user__common_8php-source.html#l00244">InsertJrnx()</a>, <a class="el" href="user__common_8php-source.html#l00699">InsertRapt()</a>, <a class="el" href="user__common_8php-source.html#l00596">InsertStockGoods()</a>, <a class="el" href="class__widget_8php-source.html#l00114">widget::IOValue()</a>, <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>, <a class="el" href="user__common_8php-source.html#l00858">jrn_navigation_bar()</a>, <a class="el" href="ac__common_8php-source.html#l00280">make_array()</a>, <a class="el" href="class__action_8php-source.html#l00638">action::myList()</a>, <a class="el" href="fiche__new_8php-source.html#l00060">new_fiche()</a>, <a class="el" href="class__document_8php-source.html#l00163">Document::ParseDocument()</a>, <a class="el" href="impress__inc_8php-source.html#l00726">ParseFormula()</a>, <a class="el" href="user__form__fin_8php-source.html#l00358">RecordFin()</a>, <a class="el" href="user__form__ven_8php-source.html#l00628">RecordInvoice()</a>, <a class="el" href="jrn_8php-source.html#l00038">RecordJrn()</a>, <a class="el" href="user__form__ach_8php-source.html#l00662">RecordSell()</a>, <a class="el" href="class__document__modele_8php-source.html#l00103">Document_modele::Save()</a>, <a class="el" href="postgres_8php-source.html#l00371">save_upload_document()</a>, <a class="el" href="class__document_8php-source.html#l00256">Document::SaveGenerated()</a>, <a class="el" href="class__action_8php-source.html#l00504">action::SaveStage2()</a>, <a class="el" href="class__action_8php-source.html#l00604">action::SaveStage3()</a>, <a class="el" href="postgres_8php-source.html#l00032">ShowDossier()</a>, <a class="el" href="user__menu_8php-source.html#l00132">ShowMenuCompta()</a>, <a class="el" href="user__menu_8php-source.html#l00213">ShowMenuJrnUser()</a>, <a class="el" href="preference_8php-source.html#l00224">ShowPeriode()</a>, <a class="el" href="user__menu_8php-source.html#l00372">u_ShowMenuRecherche()</a>, <a class="el" href="class__fiche_8php-source.html#l00642">fiche::update()</a>, <a class="el" href="class__action_8php-source.html#l00795">action::Update()</a>, <a class="el" href="fiche__inc_8php-source.html#l00530">UpdateFiche()</a>, <a class="el" href="form__inc_8php-source.html#l00208">UpdateForm()</a>, <a class="el" href="jrn_8php-source.html#l00282">UpdateJrn()</a>, <a class="el" href="fiche__inc_8php-source.html#l00869">UpdateModele()</a>, <a class="el" href="jrn_8php-source.html#l00834">VerifData()</a>, <a class="el" href="user__common_8php-source.html#l00654">VerifyOperationDate()</a>, <a class="el" href="impress__inc_8php-source.html#l00036">ViewImp()</a>, <a class="el" href="jrn_8php-source.html#l00583">ViewJrn()</a>, <a class="el" href="jrn_8php-source.html#l00415">ViewRec()</a>, and <a class="el" href="jrn_8php-source.html#l00457">ViewRecord()</a>.<div class="fragment"><pre class="fragment"><a name="l00034"></a>00034 {
<a name="l00035"></a>00035 <span class="keywordflow">if</span> ( <a class="code" href="constant_8php.html#a2">DEBUG</a>=='<span class="keyword">true</span>' ) {
<a name="l00036"></a>00036 $f=fopen (<span class="stringliteral">"/tmp/phpcompta.log"</span>,<span class="stringliteral">"a+"</span>);
<a name="l00037"></a>00037 fwrite($f,<span class="stringliteral">"$file $line $msg\n"</span>);
<a name="l00038"></a>00038 fclose ($f);
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 }
</pre></div>
<p>
</td>
</tr>
</table>
</BODY>
</HTML>