Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 8377d4bb25a3992aad680df2952f4b71 > files > 15

php-smarty-doc-2.6.26-1mdv2010.0.noarch.rpm

<HTML
><HEAD
><TITLE
>clear_config()</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Smarty Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Smarty Class Methods()"
HREF="api.functions.html"><LINK
REL="PREVIOUS"
TITLE="clear_compiled_tpl()"
HREF="api.clear.compiled.tpl.html"><LINK
REL="NEXT"
TITLE="config_load()"
HREF="api.config.load.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"
>Smarty Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="api.clear.compiled.tpl.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="api.config.load.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="api.clear.config"
></A
>clear_config()</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN5679"
></A
>clear_config()&nbsp;--&nbsp;clears assigned config variables</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN5682"
></A
><H2
>Description</H2
>void <B
CLASS="methodname"
>clear_config</B
> ( [string var])<BR
></BR
><P
>&#13;   This clears all assigned
   <A
HREF="language.config.variables.html"
>config variables</A
>.
   If a variable name is
   supplied, only that variable is cleared.
  </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN5692"
></A
><P
><B
>Example 13-1. clear_config()</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;clear&nbsp;all&nbsp;assigned&nbsp;config&nbsp;variables.<br /></span><span style="color: #0000BB">$smarty</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">clear_config</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">//&nbsp;clear&nbsp;one&nbsp;variable<br /></span><span style="color: #0000BB">$smarty</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">clear_config</span><span style="color: #007700">(</span><span style="color: #DD0000">'foobar'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><P
>&#13;  See also
  <A
HREF="api.get.config.vars.html"
><TT
CLASS="varname"
>get_config_vars()</TT
></A
>,
  <A
HREF="language.config.variables.html"
><TT
CLASS="varname"
>config variables</TT
></A
>,
  <A
HREF="config.files.html"
><TT
CLASS="varname"
>config files</TT
></A
>,
  <A
HREF="language.function.config.load.html"
><TT
CLASS="varname"
>{config_load}</TT
></A
>,
  <A
HREF="api.config.load.html"
><TT
CLASS="varname"
>config_load()</TT
></A
>
  and
  <A
HREF="api.clear.assign.html"
><TT
CLASS="varname"
>clear_assign()</TT
></A
>.
  </P
></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="api.clear.compiled.tpl.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="api.config.load.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>clear_compiled_tpl()</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="api.functions.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>config_load()</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>