<br>On Wed, Aug 25, 2010 at 2:26 PM, taha goulamhoussen <span dir="ltr">&lt;<a href="mailto:taha.goulamhoussen@gmail.com">taha.goulamhoussen@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>On Sat, Aug 21, 2010 at 11:02 PM, David DURIEUX <span dir="ltr">&lt;<a href="mailto:d.durieux@siprossii.com" target="_blank">d.durieux@siprossii.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote">
<div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Always with libserverphp, there is problems :<br>
<br>
The hook addsections must return an array with id for each section, but<br>
for each section we must have only a number (because it is using by a key number in an array. So we can&#39;t have possibility to have same key<br>
for 2 sections.<br>
<br>
For example, I store in my DB, HARDWARE section in a table and SOFTWARE section in an other. And we can have same id. it&#39;s a big PROBLEM.<br>
<br>
<br>
Other things works for the moment ;)<br>
<br>
</blockquote></div><div><br></div></div></blockquote><div>   [sorry i complete the response]<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div>Hi,<br><br>I began  to develop an solution to fix this problem.<br><br>In the addsections hook, the user have to send an associative array (section type / id). <br><br>For example: array(&#39;SOFTWARES&#39; =&gt; array(4, 5, 6, 7), <br>
</div></div></blockquote><div>                               &#39;HARDWARES&#39; =&gt; array(1,2,3,4,5))  <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div>
<br></div></div>User have to specify sections Type with their sections name in the configs file.</blockquote><div> </div><div>   This will allow to format array from xml file, in order to compare the array from xml file with the array from database. This development isn&#39;t finalise yet.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><span>Otherwise, I noticed some anomalies in the library</span>:<br></blockquote><div>
<br>  - The logs file creation doesn&#39;t work.<br>  - Array string is stored in the database, in dataSection column.<br><br>Thanks.<br></div></div><br>