Location: PHPKode > scripts > Zphotos Express > documentation/en/_zphotos___utils_8php.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Zphotos Express: ZphotosExpressV2/sources/Utils/Zphotos_Utils.php File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.0 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<h1>ZphotosExpressV2/sources/Utils/Zphotos_Utils.php File Reference</h1>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Utils</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpa470a23326b3831dd974dfc1116119c2"></a> </p>
</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_zphotos___utils_8php.html#a1cb9ffb6b1364e3457f4187eed39b8b9">zp_startswith</a> ($hay, $needle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_zphotos___utils_8php.html#a5c26770460856a5d06ca06cb963d9296">zp_endswith</a> ($hay, $needle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_zphotos___utils_8php.html#aa52d1fd709de48f1c6b2d10dae35e5ec">zp_istartswith</a> ($hay, $needle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_zphotos___utils_8php.html#a5e578c17f04c989a121146b843856200">zp_iendswith</a> ($hay, $needle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_zphotos___utils_8php.html#a171524e3a4eff40bfb346f5149dba28a">zp_alert</a> ($var)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_zphotos___utils_8php.html#a97fd11869adae1b05daa7b796a30ceb2">zp_rawurlencode</a> ($str)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<dl class="note"><dt><b>Note:</b></dt><dd>Copyright (C) 2007-2010 Thomas ZILLIOX</dd></dl>
<p>This file is part of ZPHOTOS EXPRESS.</p>
<p>ZPHOTOS EXPRESS is free script: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License.</p>
<p>ZPHOTOS EXPRESS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p>
<p>You should have received a copy of the GNU Lesser General Public License along with ZPHOTOS EXPRESS. If not, see &lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
<p>You can contact the author by e-mail <a href="mailto:hide@address.com">hide@address.com</a> </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a171524e3a4eff40bfb346f5149dba28a"></a><!-- doxytag: member="Zphotos_Utils.php::zp_alert" ref="a171524e3a4eff40bfb346f5149dba28a" args="($var)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zp_alert </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>var</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Permet d'ouvrir un message d'alerte javascript contenant la variable que l'on souhaite afficher </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>variable</em>&nbsp;</td><td>à afficher. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5c26770460856a5d06ca06cb963d9296"></a><!-- doxytag: member="Zphotos_Utils.php::zp_endswith" ref="a5c26770460856a5d06ca06cb963d9296" args="($hay, $needle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zp_endswith </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>hay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>needle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>de référence. (chaîne de caractères) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>recherché. (chaîne de caractères) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true si le texte de référence fini par le texte recherché en tenant compte de la casse. (booléen) </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="_zphotos___utils_8php.html#a1cb9ffb6b1364e3457f4187eed39b8b9">zp_startswith()</a> </dd>
<dd>
<a class="el" href="_zphotos___utils_8php.html#a5e578c17f04c989a121146b843856200">zp_iendswith()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5e578c17f04c989a121146b843856200"></a><!-- doxytag: member="Zphotos_Utils.php::zp_iendswith" ref="a5e578c17f04c989a121146b843856200" args="($hay, $needle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zp_iendswith </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>hay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>needle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>de référence. (chaîne de caractères) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>recherché. (chaîne de caractères) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true si le texte de référence fini par le texte recherché sans tenir compte de la casse. (booléen) </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="_zphotos___utils_8php.html#aa52d1fd709de48f1c6b2d10dae35e5ec">zp_istartswith()</a> </dd>
<dd>
<a class="el" href="_zphotos___utils_8php.html#a5c26770460856a5d06ca06cb963d9296">zp_endswith()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa52d1fd709de48f1c6b2d10dae35e5ec"></a><!-- doxytag: member="Zphotos_Utils.php::zp_istartswith" ref="aa52d1fd709de48f1c6b2d10dae35e5ec" args="($hay, $needle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zp_istartswith </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>hay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>needle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>de référence. (chaîne de caractères) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>recherché. (chaîne de caractères) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true si le texte de référence commence par le texte recherché sans tenir compte de la casse. (booléen) </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="_zphotos___utils_8php.html#a1cb9ffb6b1364e3457f4187eed39b8b9">zp_startswith()</a> </dd>
<dd>
<a class="el" href="_zphotos___utils_8php.html#a5e578c17f04c989a121146b843856200">zp_iendswith()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a97fd11869adae1b05daa7b796a30ceb2"></a><!-- doxytag: member="Zphotos_Utils.php::zp_rawurlencode" ref="a97fd11869adae1b05daa7b796a30ceb2" args="($str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zp_rawurlencode </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>str</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>à encodre. (chaîne de caractères) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>encode le texte avec la méthode rawurlencode() et encode en plus les caratères '/'. (chaîne de caractères) </dd></dl>

</div>
</div>
<a class="anchor" id="a1cb9ffb6b1364e3457f4187eed39b8b9"></a><!-- doxytag: member="Zphotos_Utils.php::zp_startswith" ref="a1cb9ffb6b1364e3457f4187eed39b8b9" args="($hay, $needle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zp_startswith </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>hay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>needle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>de référence. (chaîne de caractères) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>texte</em>&nbsp;</td><td>recherché. (chaîne de caractères) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true si le texte de référence commence par le texte recherché en tenant compte de la casse. (booléen) </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="_zphotos___utils_8php.html#aa52d1fd709de48f1c6b2d10dae35e5ec">zp_istartswith()</a> </dd>
<dd>
<a class="el" href="_zphotos___utils_8php.html#a5c26770460856a5d06ca06cb963d9296">zp_endswith()</a> </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Jun 24 2010 00:46:14 for Zphotos Express by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.0 </small></address>
</body>
</html>
Return current item: Zphotos Express