<?php
  include_once '../doc-typo3-funcs.php';
  $doxygen_vars = array(	"title" => "TYPO3 4.0.1: t3lib_matchCondition Class Reference",
				"datetime" => "Sat Dec 2 19:26:01 2006",
				"date" => "2 Dec 2006",
				"doxygenversion" => "1.4.6",
				"projectname" => "TYPO3 4.0.1",
				"projectnumber" => "4.0.1"
			);
  get_header($doxygen_vars);
?>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<h1>t3lib_matchCondition Class Reference</h1><!-- doxytag: class="t3lib_matchCondition" --><a href="classt3lib__matchCondition-members.html">List of all members.</a><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="classt3lib__matchCondition.html#02ec92027da4e1999895e089048c1d19">__construct</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#f053ab9a4bb587dd35a8e7d1f499f409">t3lib_matchCondition</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#c4480bfe4f6cae2f1f23b20078b6844a">match</a> ($condition_line)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#fb8ac2ebe07c531af2c663f160dba1dd">evalConditionStr</a> ($string)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#48bf8acc8689556b9b26c90d8f50c728">testNumber</a> ($test, $value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#45f3960ac0cfddbaceeb71d004b814a7">matchWild</a> ($haystack, $needle)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#4f587d87bc3f1a32ac08cbb4e4a53ff7">whichDevice</a> ($useragent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#5561add8bc00f4ce7c08445a50f11d54">browserInfo</a> ($useragent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#1ce6596d55a8c118f366d3d7487fc48f">browserInfo_version</a> ($tmp)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#b39be1d963040a22c4180ffbca5d54a4">getGlobal</a> ($var, $source=NULL)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#97fef90c70217a283a207a03eadf7b26">getGP_ENV_TSFE</a> ($var)</td></tr>

<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f38d83dde4d9af87f41a00293c2eabfb"></a><!-- doxytag: member="t3lib_matchCondition::$matchAlternative" ref="f38d83dde4d9af87f41a00293c2eabfb" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#f38d83dde4d9af87f41a00293c2eabfb">$matchAlternative</a> = array()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="19a9013294cd8a89dafece25e49ffda1"></a><!-- doxytag: member="t3lib_matchCondition::$matchAll" ref="19a9013294cd8a89dafece25e49ffda1" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#19a9013294cd8a89dafece25e49ffda1">$matchAll</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="857e766fa1660c18b8e524ed3e566240"></a><!-- doxytag: member="t3lib_matchCondition::$altRootLine" ref="857e766fa1660c18b8e524ed3e566240" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#857e766fa1660c18b8e524ed3e566240">$altRootLine</a> = array()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="367ce35ed886dba17fc2812049862830"></a><!-- doxytag: member="t3lib_matchCondition::$hookObjectsArr" ref="367ce35ed886dba17fc2812049862830" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__matchCondition.html#367ce35ed886dba17fc2812049862830">$hookObjectsArr</a> = array()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>

<p>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00080">80</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="f053ab9a4bb587dd35a8e7d1f499f409"></a><!-- doxytag: member="t3lib_matchCondition::t3lib_matchCondition" ref="f053ab9a4bb587dd35a8e7d1f499f409" 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">t3lib_matchCondition::t3lib_matchCondition           </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>
Constructor for this class<p>
<dl compact><dt><b>Returns:</b></dt><dd>void </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00110">110</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00092">__construct()</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="02ec92027da4e1999895e089048c1d19"></a><!-- doxytag: member="t3lib_matchCondition::__construct" ref="02ec92027da4e1999895e089048c1d19" 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">t3lib_matchCondition::__construct           </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>
Constructor for this class<p>
<dl compact><dt><b>Returns:</b></dt><dd>void </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00092">92</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__div_8php-source.html#l03926">t3lib_div::getUserObj()</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00110">t3lib_matchCondition()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="5561add8bc00f4ce7c08445a50f11d54"></a><!-- doxytag: member="t3lib_matchCondition::browserInfo" ref="5561add8bc00f4ce7c08445a50f11d54" args="($useragent)" --><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">t3lib_matchCondition::browserInfo           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>useragent</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>
Generates an array with abstracted browser information This method is used in the function <a class="el" href="classt3lib__matchCondition.html#c4480bfe4f6cae2f1f23b20078b6844a">match()</a> in this class<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>string</em>&nbsp;</td><td>The useragent string, <a class="el" href="classt3lib__div.html#cd7ecd00954e9a6b0c14eb23cf875d3f">t3lib_div::getIndpEnv</a>('HTTP_USER_AGENT') </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>array Contains keys "browser", "version", "system"  private </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classt3lib__matchCondition.html#c4480bfe4f6cae2f1f23b20078b6844a">match()</a> </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00503">503</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00616">browserInfo_version()</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">evalConditionStr()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="1ce6596d55a8c118f366d3d7487fc48f"></a><!-- doxytag: member="t3lib_matchCondition::browserInfo_version" ref="1ce6596d55a8c118f366d3d7487fc48f" args="($tmp)" --><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">t3lib_matchCondition::browserInfo_version           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>tmp</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>
Returns the version of a browser; Basically getting doubleval() of the input string, stripping of any non-numeric values in the beginning of the string first.<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>string</em>&nbsp;</td><td>A string with version number, eg. "/7.32 blablabla" </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>double Returns double value, eg. "7.32" </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00616">616</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00503">browserInfo()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="fb8ac2ebe07c531af2c663f160dba1dd"></a><!-- doxytag: member="t3lib_matchCondition::evalConditionStr" ref="fb8ac2ebe07c531af2c663f160dba1dd" args="($string)" --><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">t3lib_matchCondition::evalConditionStr           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>string</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>
Evaluates a TypoScript condition given as input, eg. "[browser=net][...(other conditions)...]"<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>string</em>&nbsp;</td><td>The condition to match against its criterias. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>boolean Returns true or false based on the evaluation. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd>t3lib_tsparser::parse() <a class="el" href="">&amp;tx_extrepmgm_pi1[extUid]=270&amp;tx_extrepmgm_pi1[tocEl]=292&amp;cHash=c6c7d43d2f </a></dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">165</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00503">browserInfo()</a>, <a class="el" href="class_8t3lib__div_8php-source.html#l00805">t3lib_div::cmpFQDN()</a>, <a class="el" href="class_8t3lib__div_8php-source.html#l00610">t3lib_div::cmpIP()</a>, <a class="el" href="class_8t3lib__div_8php-source.html#l00936">t3lib_div::compat_version()</a>, <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00663">getGP_ENV_TSFE()</a>, <a class="el" href="incfile_8php-source.html#l00046">t3lib_div::getIndpEnv()</a>, <a class="el" href="class_8t3lib__div_8php-source.html#l00835">t3lib_div::inList()</a>, <a class="el" href="class_8t3lib__div_8php-source.html#l01132">t3lib_div::isFirstPartOfStr()</a>, <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00410">matchWild()</a>, <a class="el" href="class_8t3lib__div_8php-source.html#l01120">t3lib_div::testInt()</a>, <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00386">testNumber()</a>, <a class="el" href="incfile_8php-source.html#l00011">t3lib_div::trimExplode()</a>, and <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00434">whichDevice()</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00120">match()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="b39be1d963040a22c4180ffbca5d54a4"></a><!-- doxytag: member="t3lib_matchCondition::getGlobal" ref="b39be1d963040a22c4180ffbca5d54a4" args="($var, $source=NULL)" --><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">t3lib_matchCondition::getGlobal           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>var</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>source</em> = <code>NULL</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>
Return global variable where the input string $var defines array keys separated by "|" Example: $var = "HTTP_SERVER_VARS | something" will return the value $GLOBALS['HTTP_SERVER_VARS']['something'] 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>string</em>&nbsp;</td><td>Global var key, eg. "HTTP_GET_VAR" or "HTTP_GET_VARS|id" to get the GET parameter "id" back. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>Alternative array than $GLOBAL to get variables from. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>mixed Whatever value. If none, then blank string.  private </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00629">629</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.    </td>
  </tr>
</table>
<a class="anchor" name="97fef90c70217a283a207a03eadf7b26"></a><!-- doxytag: member="t3lib_matchCondition::getGP_ENV_TSFE" ref="97fef90c70217a283a207a03eadf7b26" args="($var)" --><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">t3lib_matchCondition::getGP_ENV_TSFE           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>var</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>
Returns GP / ENV / TSFE vars<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>string</em>&nbsp;</td><td>Identifier </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>mixed The value of the variable pointed to.  private <a class="el" href="">&amp;tx_extrepmgm_pi1[extUid]=270&amp;tx_extrepmgm_pi1[tocEl]=311&amp;cHash=487cbd5cdf </a></dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00663">663</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__div_8php-source.html#l00262">t3lib_div::_GP()</a>, and <a class="el" href="incfile_8php-source.html#l00046">t3lib_div::getIndpEnv()</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">evalConditionStr()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="c4480bfe4f6cae2f1f23b20078b6844a"></a><!-- doxytag: member="t3lib_matchCondition::match" ref="c4480bfe4f6cae2f1f23b20078b6844a" args="($condition_line)" --><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">t3lib_matchCondition::match           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>condition_line</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>
Matching TS condition<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>string</em>&nbsp;</td><td>Line to match </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>boolean True if matched </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00120">120</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">evalConditionStr()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="45f3960ac0cfddbaceeb71d004b814a7"></a><!-- doxytag: member="t3lib_matchCondition::matchWild" ref="45f3960ac0cfddbaceeb71d004b814a7" args="($haystack, $needle)" --><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">t3lib_matchCondition::matchWild           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>haystack</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>needle</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>
Matching two strings against each other, supporting a "*" wildcard or (if wrapped in "/") PCRE regular expressions<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>string</em>&nbsp;</td><td>The string in which to find $needle. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>The string to find in $haystack </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>boolean Returns true if $needle matches or is found in (according to wildcards) in $haystack. Eg. if $haystack is "Netscape 6.5" and $needle is "Net*" or "Net*ape" then it returns true. </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00410">410</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">evalConditionStr()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="48bf8acc8689556b9b26c90d8f50c728"></a><!-- doxytag: member="t3lib_matchCondition::testNumber" ref="48bf8acc8689556b9b26c90d8f50c728" args="($test, $value)" --><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">t3lib_matchCondition::testNumber           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>test</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>value</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>
Will evaluate a $value based on an operator: "&lt;", "&gt;" or "=" (default)<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>string</em>&nbsp;</td><td>The value to compare with on the form [operator][number]. Eg. "&lt; 123" </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>integer</em>&nbsp;</td><td>The number </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>boolean If $value is "50" and $test is "&lt; 123" then it will return true. </dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00386">386</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">evalConditionStr()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="4f587d87bc3f1a32ac08cbb4e4a53ff7"></a><!-- doxytag: member="t3lib_matchCondition::whichDevice" ref="4f587d87bc3f1a32ac08cbb4e4a53ff7" args="($useragent)" --><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">t3lib_matchCondition::whichDevice           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>useragent</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>
Returns a code for a browsing device based on the input useragent string<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>string</em>&nbsp;</td><td>User agent string from browser, <a class="el" href="classt3lib__div.html#cd7ecd00954e9a6b0c14eb23cf875d3f">t3lib_div::getIndpEnv</a>('HTTP_USER_AGENT') </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>string A code. See link.  private <a class="el" href="">&amp;tx_extrepmgm_pi1[extUid]=270&amp;tx_extrepmgm_pi1[tocEl]=296&amp;cHash=a8ae66c7d6 </a></dd></dl>

<p>
Definition at line <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00434">434</a> of file <a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a>.
<p>
References <a class="el" href="class_8t3lib__div_8php-source.html#l03926">t3lib_div::getUserObj()</a>.
<p>
Referenced by <a class="el" href="class_8t3lib__matchcondition_8php-source.html#l00165">evalConditionStr()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li>typo3_src-4.0.1/t3lib/<a class="el" href="class_8t3lib__matchcondition_8php-source.html">class.t3lib_matchcondition.php</a></ul>
<?php
  include_once '../doc-typo3-funcs.php';
  get_footer();
?>