altocompta/doc/developper/html/classcl__user.html

694 lines
30 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: cl_user 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&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>
<h1>cl_user Class Reference</h1><!-- doxytag: class="cl_user" -->Data &amp; function about connected users.
<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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a0">cl_user</a> ($p_cn, $p_id=-1)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a1">Check</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if user is active and exists in therepository Automatically redirect. <a href="#a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a2">getJrn</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a3">Admin</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if an user is an admin. <a href="#a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a4">AccessJrn</a> ($p_cn, $p_jrn_id)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a5">SetPeriode</a> ($p_periode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the selected periode in the user's preferences. <a href="#a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a6">GetPeriode</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the default periode from the user's preferences. <a href="#a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a7">GetPreferences</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the default user's preferences. <a href="#a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a8">CheckAction</a> ($p_cn, $p_action_id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if an user is allowed to do an action. <a href="#a8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a9">GetGlobalPref</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the global preferences from user_global_pref in the account_repository db. <a href="#a9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a10">insert_default_global_pref</a> ($p_type=&quot;&quot;, $<a class="el" href="poste_8inc_8php.html#a2">p_value</a>=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">insert default pref if no parameter are given insert all the existing parameter otherwise only the requested <a href="#a10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#a11">update_global_pref</a> ($p_type, $<a class="el" href="poste_8inc_8php.html#a2">p_value</a>=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">update default pref if value is not given then use the default value <a href="#a11"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#o0">$id</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#o1">$pass</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#o2">$db</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#o3">$admin</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcl__user.html#o4">$valid</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Data &amp; function about connected users.
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00033">33</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="cl_user::cl_user" 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">cl_user::cl_user </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</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>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em> = <code>-1</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>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00040">40</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="commercial_8php-source.html#l00035">$_SESSION</a>, <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="user__update_8php-source.html#l00032">$p_id</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="cbc__be_8inc_8php-source.html#l00028">$row</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00055">$Sql</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="user__common_8php-source.html#l00834">isValid()</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, and <a class="el" href="facturation_8php-source.html#l00063">theme</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a4"></a><!-- doxytag: member="cl_user::AccessJrn" ref="a4" args="($p_cn, $p_jrn_id)" --><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">cl_user::AccessJrn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</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>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn_id</em></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>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00158">158</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="class__user_8php-source.html#l00143">Admin()</a>, and <a class="el" href="postgres_8php-source.html#l00222">CountSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="cl_user::Admin" 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">cl_user::Admin </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Check if an user is an admin.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>1 for yes 0 for no</dd></dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00143">143</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="admin__repo_8php-source.html#l00059">$pass5</a>, <a class="el" href="pref_8inc_8php-source.html#l00056">$res</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="postgres_8php-source.html#l00222">CountSql()</a>, and <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>.
<p>
Referenced by <a class="el" href="class__user_8php-source.html#l00158">AccessJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="cl_user::Check" 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">cl_user::Check </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Check if user is active and exists in therepository Automatically redirect.
<p>
++
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00085">85</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="commercial_8php-source.html#l00035">$_SESSION</a>, <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="admin__repo_8php-source.html#l00059">$pass5</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="pref_8inc_8php-source.html#l00056">$res</a>, <a class="el" href="class__operation_8php-source.html#l00087">$ret</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="balance_8php-source.html#l00033">exit</a>, <a class="el" href="class__user_8php-source.html#l00257">GetGlobalPref()</a>, and <a class="el" href="client_8inc_8php-source.html#l00116">name</a>. </td>
</tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="cl_user::CheckAction" ref="a8" args="($p_cn, $p_action_id)" --><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">cl_user::CheckAction </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</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>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_action_id</em></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>
Check if an user is allowed to do an action.
<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>p_dossier</em>&nbsp;</td><td>dossier id </td></tr>
<tr><td valign="top"></td><td valign="top"><em>p_login</em>&nbsp;</td><td>user's login </td></tr>
<tr><td valign="top"></td><td valign="top"><em>p_action_id</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>0 no priv</li></ul>
</dd></dl>
<ul>
<li>1 priv granted</li></ul>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00237">237</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="cl_user::GetGlobalPref" ref="a9" 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">cl_user::GetGlobalPref </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the global preferences from user_global_pref in the account_repository db.
<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>set</em>&nbsp;</td><td>g_variable</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00257">257</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="commercial_8php-source.html#l00035">$_SESSION</a>, <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="setup_8php-source.html#l00374">$Max</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="cbc__be_8inc_8php-source.html#l00028">$row</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="class__user_8php-source.html#l00299">insert_default_global_pref()</a>, and <a class="el" href="client_8inc_8php-source.html#l00116">name</a>.
<p>
Referenced by <a class="el" href="class__user_8php-source.html#l00085">Check()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="cl_user::getJrn" 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">cl_user::getJrn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00135">135</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="cl_user::GetPeriode" ref="a6" 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">cl_user::GetPeriode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the default periode from the user's preferences.
<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>$p_cn</em>&nbsp;</td><td>connexion </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_user</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the default periode</dd></dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00192">192</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="recherche_8php-source.html#l00066">$array</a>, and <a class="el" href="class__user_8php-source.html#l00204">GetPreferences()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="cl_user::GetPreferences" ref="a7" 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">cl_user::GetPreferences </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the default user's preferences.
<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>$p_cn</em>&nbsp;</td><td>connexion </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_user</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>array of (parameter_type =&gt; parameter_value)</dd></dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00204">204</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="cbc__be_8inc_8php-source.html#l00028">$row</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="class__user_8php-source.html#l00192">GetPeriode()</a>. </td>
</tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="cl_user::insert_default_global_pref" ref="a10" args="($p_type=&quot;&quot;, $p_value=&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">cl_user::insert_default_global_pref </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_type</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>p_value</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>
insert default pref if no parameter are given insert all the existing parameter otherwise only the requested
<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>parameter's</em>&nbsp;</td><td>type or nothing</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00299">299</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00055">$Sql</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>.
<p>
Referenced by <a class="el" href="class__user_8php-source.html#l00257">GetGlobalPref()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="cl_user::SetPeriode" ref="a5" args="($p_periode)" --><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">cl_user::SetPeriode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_periode</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the selected periode in the user's preferences.
<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>$p_periode</em>&nbsp;</td><td>periode </td></tr>
<tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td>$p_user</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00178">178</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="cl_user::update_global_pref" ref="a11" args="($p_type, $p_value=&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">cl_user::update_global_pref </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_type</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>p_value</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>
update default pref if value is not given then use the default value
<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>parameter's</em>&nbsp;</td><td>type </td></tr>
<tr><td valign="top"></td><td valign="top"><em>parameter's</em>&nbsp;</td><td>value value of the type</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00331">331</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>.
<p>
References <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00055">$Sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>. </td>
</tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="o3"></a><!-- doxytag: member="cl_user::$admin" 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">cl_user::$admin </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00037">37</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o2"></a><!-- doxytag: member="cl_user::$db" 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">cl_user::$db </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00036">36</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o0"></a><!-- doxytag: member="cl_user::$id" 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">cl_user::$<a class="el" href="impress__fiche_8php.html#a6">id</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00034">34</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o1"></a><!-- doxytag: member="cl_user::$pass" 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">cl_user::$pass </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00035">35</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o4"></a><!-- doxytag: member="cl_user::$valid" ref="o4" 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">cl_user::$valid </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="class__user_8php-source.html#l00038">38</a> of file <a class="el" href="class__user_8php-source.html">class_user.php</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li>/home/dany/developpement/phpcompta-dev/phpcompta/include/<a class="el" href="class__user_8php-source.html">class_user.php</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:47 2006 for phpcompta by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>