|
|
@ -51,22 +51,22 @@
|
|
|
|
<td class="danger small"><div align="right">0.00%</div></td>
|
|
|
|
<td class="danger small"><div align="right">0.00%</div></td>
|
|
|
|
<td class="danger small"><div align="right">0 / 1</div></td>
|
|
|
|
<td class="danger small"><div align="right">0 / 1</div></td>
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="42.86" aria-valuemin="0" aria-valuemax="100" style="width: 42.86%">
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="37.50" aria-valuemin="0" aria-valuemax="100" style="width: 37.50%">
|
|
|
|
<span class="sr-only">42.86% covered (danger)</span>
|
|
|
|
<span class="sr-only">37.50% covered (danger)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="danger small"><div align="right">42.86%</div></td>
|
|
|
|
<td class="danger small"><div align="right">37.50%</div></td>
|
|
|
|
<td class="danger small"><div align="right">3 / 7</div></td>
|
|
|
|
<td class="danger small"><div align="right">3 / 8</div></td>
|
|
|
|
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
|
|
|
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
|
|
|
<td class="warning big"> <div class="progress">
|
|
|
|
<td class="warning big"> <div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
|
|
|
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="78.65" aria-valuemin="0" aria-valuemax="100" style="width: 78.65%">
|
|
|
|
<span class="sr-only">83.33% covered (warning)</span>
|
|
|
|
<span class="sr-only">78.65% covered (warning)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="warning small"><div align="right">83.33%</div></td>
|
|
|
|
<td class="warning small"><div align="right">78.65%</div></td>
|
|
|
|
<td class="warning small"><div align="right">70 / 84</div></td>
|
|
|
|
<td class="warning small"><div align="right">70 / 89</div></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -80,22 +80,22 @@
|
|
|
|
<td class="danger small"><div align="right">0.00%</div></td>
|
|
|
|
<td class="danger small"><div align="right">0.00%</div></td>
|
|
|
|
<td class="danger small"><div align="right">0 / 1</div></td>
|
|
|
|
<td class="danger small"><div align="right">0 / 1</div></td>
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="42.86" aria-valuemin="0" aria-valuemax="100" style="width: 42.86%">
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="37.50" aria-valuemin="0" aria-valuemax="100" style="width: 37.50%">
|
|
|
|
<span class="sr-only">42.86% covered (danger)</span>
|
|
|
|
<span class="sr-only">37.50% covered (danger)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="danger small"><div align="right">42.86%</div></td>
|
|
|
|
<td class="danger small"><div align="right">37.50%</div></td>
|
|
|
|
<td class="danger small"><div align="right">3 / 7</div></td>
|
|
|
|
<td class="danger small"><div align="right">3 / 8</div></td>
|
|
|
|
<td class="danger small">63.04</td>
|
|
|
|
<td class="danger small">80.33</td>
|
|
|
|
<td class="warning big"> <div class="progress">
|
|
|
|
<td class="warning big"> <div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
|
|
|
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="78.65" aria-valuemin="0" aria-valuemax="100" style="width: 78.65%">
|
|
|
|
<span class="sr-only">83.33% covered (warning)</span>
|
|
|
|
<span class="sr-only">78.65% covered (warning)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="warning small"><div align="right">83.33%</div></td>
|
|
|
|
<td class="warning small"><div align="right">78.65%</div></td>
|
|
|
|
<td class="warning small"><div align="right">70 / 84</div></td>
|
|
|
|
<td class="warning small"><div align="right">70 / 89</div></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -225,7 +225,28 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="danger" colspan="4"> <a href="#274"><abbr title="frDate($date)">frDate</abbr></a></td>
|
|
|
|
<td class="danger" colspan="4"> <a href="#275"><abbr title="formatNumber($number)">formatNumber</abbr></a></td>
|
|
|
|
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
|
|
|
|
|
|
|
<span class="sr-only">0.00% covered (danger)</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="danger small"><div align="right">0.00%</div></td>
|
|
|
|
|
|
|
|
<td class="danger small"><div align="right">0 / 1</div></td>
|
|
|
|
|
|
|
|
<td class="danger small">6</td>
|
|
|
|
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
|
|
|
|
|
|
|
<span class="sr-only">0.00% covered (danger)</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="danger small"><div align="right">0.00%</div></td>
|
|
|
|
|
|
|
|
<td class="danger small"><div align="right">0 / 5</div></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="danger" colspan="4"> <a href="#300"><abbr title="frDate($date)">frDate</abbr></a></td>
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
<td class="danger big"> <div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
|
|
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
|
|
|
<span class="sr-only">0.00% covered (danger)</span>
|
|
|
|
<span class="sr-only">0.00% covered (danger)</span>
|
|
|
@ -514,45 +535,71 @@
|
|
|
|
<tr class="warning"><td><div align="right"><a name="262"></a><a href="#262">262</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
<tr class="warning"><td><div align="right"><a name="262"></a><a href="#262">262</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="263"></a><a href="#263">263</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="263"></a><a href="#263">263</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="264"></a><a href="#264">264</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="264"></a><a href="#264">264</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="265"></a><a href="#265">265</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">////////////////////////////////////</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="265"></a><a href="#265">265</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="266"></a><a href="#266">266</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// _ _</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="266"></a><a href="#266">266</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="267"></a><a href="#267">267</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// __| | __ _| |_ ___ ___</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="267"></a><a href="#267">267</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="268"></a><a href="#268">268</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// / _` |/ _` | __/ _ \/ __|</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="268"></a><a href="#268">268</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* FONCTION QUI FORMATTE UN NUMÉRO DE TÉLÉPHONE</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="269"></a><a href="#269">269</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// | (_| | (_| | || __/\__ \</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="269"></a><a href="#269">269</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="270"></a><a href="#270">270</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// \__,_|\__,_|\__\___||___/</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="270"></a><a href="#270">270</a></div></td><td class="codeLine"><span class="comment"> * @number<String> Numéro de téléphone en +336/336/06/0336/00336</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="271"></a><a href="#271">271</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">//</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="271"></a><a href="#271">271</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="272"></a><a href="#272">272</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">////////////////////////////////////</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="272"></a><a href="#272">272</a></div></td><td class="codeLine"><span class="comment"> * @return formatted<String> Numéro formatté (06), on FALSE si erreur</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="273"></a><a href="#273">273</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// 1) Convertis une date en en francais explicite</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="273"></a><a href="#273">273</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="274"></a><a href="#274">274</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">frDate</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="274"></a><a href="#274">274</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="275"></a><a href="#275">275</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [1] On definit les traductions</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="275"></a><a href="#275">275</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">formatNumber</span><span class="keyword">(</span><span class="default">$number</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="276"></a><a href="#276">276</a></div></td><td class="codeLine"><span class="comment"> =========================================================*/</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="276"></a><a href="#276">276</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// On met en <string> quel que soit le type</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="277"></a><a href="#277">277</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// Jours de la semaine</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="277"></a><a href="#277">277</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$number</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">(string)</span><span class="default"> </span><span class="default">$number</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="278"></a><a href="#278">278</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$days</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">array</span><span class="keyword">(</span><span class="default">"Lundi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mardi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mercredi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Jeudi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Vendredi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Samedi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Dimanche"</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="278"></a><a href="#278">278</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="279"></a><a href="#279">279</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// Mois de l'annee</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="279"></a><a href="#279">279</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// On supprime tous les espaces</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="280"></a><a href="#280">280</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$months</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">array</span><span class="keyword">(</span><span class="default">"Janvier"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Février"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mars"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Avril"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mai"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Juin"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Juillet"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Août"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Septembre"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Octobre"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Novembre"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Décembre"</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="280"></a><a href="#280">280</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$number</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">str_replace</span><span class="keyword">(</span><span class="default">' '</span><span class="keyword">,</span><span class="default"> </span><span class="default">''</span><span class="keyword">,</span><span class="default"> </span><span class="default">$number</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="281"></a><a href="#281">281</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="281"></a><a href="#281">281</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="282"></a><a href="#282">282</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [2] On recupere le timestamp et les indices</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="282"></a><a href="#282">282</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// On formatte le numéro</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="283"></a><a href="#283">283</a></div></td><td class="codeLine"><span class="comment"> =========================================================*/</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="283"></a><a href="#283">283</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">"/^(?:\+33|0?0?33|0)(.+)/"</span><span class="keyword">,</span><span class="default"> </span><span class="default">$number</span><span class="keyword">,</span><span class="default"> </span><span class="default">$m</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="284"></a><a href="#284">284</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$time</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// timestamp</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="284"></a><a href="#284">284</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$number</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">'0'</span><span class="keyword">.</span><span class="default">$m</span><span class="keyword">[</span><span class="default">1</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="285"></a><a href="#285">285</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$daynum</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">intval</span><span class="keyword">(</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'N'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">-</span><span class="default">1</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// jour dans la semaine</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="285"></a><a href="#285">285</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="286"></a><a href="#286">286</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$monthnum</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">intval</span><span class="keyword">(</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'n'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">-</span><span class="default">1</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// numero du mois dans l'annee</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="286"></a><a href="#286">286</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// On retourne le numéro formatté</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="287"></a><a href="#287">287</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="287"></a><a href="#287">287</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$number</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="288"></a><a href="#288">288</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr class="warning"><td><div align="right"><a name="288"></a><a href="#288">288</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="289"></a><a href="#289">289</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [3] On recupere les infos independemment</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="289"></a><a href="#289">289</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="290"></a><a href="#290">290</a></div></td><td class="codeLine"><span class="comment"> =========================================================*/</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="290"></a><a href="#290">290</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="291"></a><a href="#291">291</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">array</span><span class="keyword">(</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="291"></a><a href="#291">291</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">////////////////////////////////////</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="292"></a><a href="#292">292</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$days</span><span class="keyword">[</span><span class="default">$daynum</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// nom de jour</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="292"></a><a href="#292">292</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// _ _</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="293"></a><a href="#293">293</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'j'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// jour du mois</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="293"></a><a href="#293">293</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// __| | __ _| |_ ___ ___</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="294"></a><a href="#294">294</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$months</span><span class="keyword">[</span><span class="default">$monthnum</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// nom du mois</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="294"></a><a href="#294">294</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// / _` |/ _` | __/ _ \/ __|</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="295"></a><a href="#295">295</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// annee</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="295"></a><a href="#295">295</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// | (_| | (_| | || __/\__ \</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="296"></a><a href="#296">296</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="296"></a><a href="#296">296</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// \__,_|\__,_|\__\___||___/</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="297"></a><a href="#297">297</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="297"></a><a href="#297">297</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">//</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="298"></a><a href="#298">298</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="298"></a><a href="#298">298</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">////////////////////////////////////</span></td></tr>
|
|
|
|
<tr class="danger"><td><div align="right"><a name="299"></a><a href="#299">299</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">implode</span><span class="keyword">(</span><span class="default">" "</span><span class="keyword">,</span><span class="default"> </span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="299"></a><a href="#299">299</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// 1) Convertis une date en en francais explicite</span></td></tr>
|
|
|
|
<tr class="warning"><td><div align="right"><a name="300"></a><a href="#300">300</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="300"></a><a href="#300">300</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">frDate</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="301"></a><a href="#301">301</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="301"></a><a href="#301">301</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [1] On definit les traductions</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="302"></a><a href="#302">302</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="302"></a><a href="#302">302</a></div></td><td class="codeLine"><span class="comment"> =========================================================*/</span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="303"></a><a href="#303">303</a></div></td><td class="codeLine"><span class="default">?></span></td></tr>
|
|
|
|
<tr><td><div align="right"><a name="303"></a><a href="#303">303</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// Jours de la semaine</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="304"></a><a href="#304">304</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$days</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">array</span><span class="keyword">(</span><span class="default">"Lundi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mardi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mercredi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Jeudi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Vendredi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Samedi"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Dimanche"</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="305"></a><a href="#305">305</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// Mois de l'annee</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="306"></a><a href="#306">306</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$months</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">array</span><span class="keyword">(</span><span class="default">"Janvier"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Février"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mars"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Avril"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Mai"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Juin"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Juillet"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Août"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Septembre"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Octobre"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Novembre"</span><span class="keyword">,</span><span class="default"> </span><span class="default">"Décembre"</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="307"></a><a href="#307">307</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="308"></a><a href="#308">308</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [2] On recupere le timestamp et les indices</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="309"></a><a href="#309">309</a></div></td><td class="codeLine"><span class="comment"> =========================================================*/</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="310"></a><a href="#310">310</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$time</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// timestamp</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="311"></a><a href="#311">311</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$daynum</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">intval</span><span class="keyword">(</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'N'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">-</span><span class="default">1</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// jour dans la semaine</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="312"></a><a href="#312">312</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$monthnum</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">intval</span><span class="keyword">(</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'n'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">-</span><span class="default">1</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// numero du mois dans l'annee</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="313"></a><a href="#313">313</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="314"></a><a href="#314">314</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="315"></a><a href="#315">315</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [3] On recupere les infos independemment</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="316"></a><a href="#316">316</a></div></td><td class="codeLine"><span class="comment"> =========================================================*/</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="317"></a><a href="#317">317</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">array</span><span class="keyword">(</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="318"></a><a href="#318">318</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$days</span><span class="keyword">[</span><span class="default">$daynum</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// nom de jour</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="319"></a><a href="#319">319</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'j'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// jour du mois</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="320"></a><a href="#320">320</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$months</span><span class="keyword">[</span><span class="default">$monthnum</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// nom du mois</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="321"></a><a href="#321">321</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y'</span><span class="keyword">,</span><span class="default"> </span><span class="default">$time</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="comment">// annee</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="322"></a><a href="#322">322</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="323"></a><a href="#323">323</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="324"></a><a href="#324">324</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
|
|
|
|
<tr class="danger"><td><div align="right"><a name="325"></a><a href="#325">325</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">implode</span><span class="keyword">(</span><span class="default">" "</span><span class="keyword">,</span><span class="default"> </span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
|
|
|
|
|
|
|
<tr class="warning"><td><div align="right"><a name="326"></a><a href="#326">326</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="327"></a><a href="#327">327</a></div></td><td class="codeLine"></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="328"></a><a href="#328">328</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
|
|
|
|
|
|
|
<tr><td><div align="right"><a name="329"></a><a href="#329">329</a></div></td><td class="codeLine"><span class="default">?></span></td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -565,7 +612,7 @@
|
|
|
|
<span class="warning"><strong>Dead Code</strong></span>
|
|
|
|
<span class="warning"><strong>Dead Code</strong></span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
|
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 2.1.7</a> using <a href="http://php.net/" target="_top">PHP 5.6.11-1ubuntu3.1</a> and <a href="http://phpunit.de/">PHPUnit 4.7.6</a> at Mon Apr 18 17:06:21 UTC 2016.</small>
|
|
|
|
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 2.1.7</a> using <a href="http://php.net/" target="_top">PHP 5.6.11-1ubuntu3.1</a> and <a href="http://phpunit.de/">PHPUnit 4.7.6</a> at Mon Apr 18 20:36:30 UTC 2016.</small>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
|
|
|
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|