Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a34ed6838d4b29d38abd504392a4a797 > files > 2755

php-manual-es-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>udm_add_search_limit</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual de PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="mnoGoSearch Functions"
HREF="ref.mnogo.html"><LINK
REL="PREVIOUS"
TITLE="mnoGoSearch Functions"
HREF="ref.mnogo.html"><LINK
REL="NEXT"
TITLE="udm_alloc_agent"
HREF="function.udm-alloc-agent.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual de PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="ref.mnogo.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.udm-alloc-agent.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.udm-add-search-limit"
></A
>udm_add_search_limit</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN45943"
></A
><P
>    (PHP 4 &#62;= 4.0.5)</P
>udm_add_search_limit&nbsp;--&nbsp;Add various search limits</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN45946"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>udm_add_search_limit</B
> ( int agent, int var, string val)<BR
></BR
><P
>&#13;    <B
CLASS="function"
>udm_add_search_limit()</B
> returns <TT
CLASS="constant"
><B
>TRUE</B
></TT
> on success, 
    <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on error. Adds search restrictions.
   </P
><P
>&#13;    <TT
CLASS="parameter"
><I
>agent</I
></TT
> - a link to Agent, received after call to 
    <A
HREF="function.udm-alloc-agent.html"
><B
CLASS="function"
>udm_alloc_agent()</B
></A
>.
   </P
><P
>&#13;    <TT
CLASS="parameter"
><I
>var</I
></TT
> - defines parameter, indicating limit.
   </P
><P
>&#13;    <TT
CLASS="parameter"
><I
>val</I
></TT
> - defines value of the current parameter.
   </P
><P
>&#13;    Possible <TT
CLASS="parameter"
><I
>var</I
></TT
> values:
   </P
><P
></P
><UL
><LI
><P
>&#13;      UDM_LIMIT_URL - defines document URL limitations to limit search 
      through subsection of database. It supports SQL % and _  LIKE wildcards,
      where % matches any number of characters, even zero characters,
      and _ matches exactly one character. E.g. http://my.domain.__/catalog 
      may stand for http://my.domain.ru/catalog and http://my.domain.ua/catalog.
     </P
></LI
><LI
><P
>&#13;      UDM_LIMIT_TAG - defines site TAG limitations. In indexer-conf you can
      assign specific TAGs to various sites and parts of a site. Tags in 
      mnoGoSearch 3.1.x are lines, that may contain metasymbols % and _. 
      Metasymbols allow searching among groups of tags.
      E.g. there are links with tags ABCD and ABCE, and search restriction 
      is by ABC_ - the search will be made among both of the tags.
     </P
></LI
><LI
><P
>&#13;      UDM_LIMIT_LANG - defines document language limitations.
     </P
></LI
><LI
><P
>&#13;      UDM_LIMIT_CAT - defines document category limitations. Categories are 
      similar to tag feature, but nested. So you can have one category inside
      another and so on. You have to use two characters for each level. Use a
      hex number going from 0-F or a 36 base number going from 0-Z.
      Therefore a top-level category like 'Auto' would be 01. If it has a
      subcategory like 'Ford', then it would be 01 (the parent category) and then
      'Ford' which we will give 01. Put those together and you get 0101. If 'Auto'
      had another subcategory named 'VW', then it's id would be 01 because it
      belongs to the 'Ford' category and then 02 because it's the next category.
      So it's id would be 0102. If VW had a sub category called 'Engine' then it's
      id would start at 01 again and it would get the 'VW' id 02 and 'Auto' id of
      01, making it 010201. If you want to search for sites under that category 
      then you pass it cat=010201 in the url.
     </P
></LI
><LI
><P
>&#13;      UDM_LIMIT_DATE - defines limitation by date document was modified.
     </P
><P
>&#13;      Format of parameter value: a string with first character &#60; or &#62;,
      then with no space - date in unixtime format, for example:
     </P
><P
>&#13;      Udm_Add_Search_Limit($udm,UDM_LIMIT_DATE,"&#60;908012006");
     </P
><P
>&#13;      If &#62; character is used, then search will be restricted to those
      documents having modification date greater than entered. If &#60;, then smaller.
     </P
></LI
></UL
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="ref.mnogo.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Inicio</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.udm-alloc-agent.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mnoGoSearch Functions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.mnogo.html"
ACCESSKEY="U"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>udm_alloc_agent</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>