| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  |  | <!-- $Revision$ --> | 
					
						
							| 
									
										
										
										
											2005-12-04 21:46:10 +00:00
										 |  |  |  | <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  | <refentry id="api.clear.config"> | 
					
						
							|  |  |  |  |  <refnamediv> | 
					
						
							| 
									
										
										
										
											2005-12-04 21:46:10 +00:00
										 |  |  |  |   <refname>clear_config()</refname> | 
					
						
							|  |  |  |  |   <refpurpose>Efface toutes les variables de configuration assign<67>es</refpurpose> | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  |  </refnamediv> | 
					
						
							|  |  |  |  |  <refsect1> | 
					
						
							| 
									
										
										
										
											2005-12-04 21:46:10 +00:00
										 |  |  |  |   <title>Description</title> | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  |   <methodsynopsis> | 
					
						
							|  |  |  |  |    <type>void</type><methodname>clear_config</methodname> | 
					
						
							|  |  |  |  |    <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> | 
					
						
							|  |  |  |  |   </methodsynopsis> | 
					
						
							|  |  |  |  |   <para> | 
					
						
							| 
									
										
										
										
											2005-05-25 16:49:34 +00:00
										 |  |  |  |    Utilis<69>e pour effacer toutes les <link linkend="language.config.variables">variables | 
					
						
							|  |  |  |  |    de configuration</link> assign<67>es. | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  |    Si un nom de variable est sp<73>cifi<66>, seule cette variable sera effac<61>e. | 
					
						
							|  |  |  |  |   </para> | 
					
						
							|  |  |  |  |   <example> | 
					
						
							| 
									
										
										
										
											2005-12-04 21:46:10 +00:00
										 |  |  |  |    <title>Exemple avec clear_config()</title> | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  |    <programlisting role="php"> | 
					
						
							|  |  |  |  | <![CDATA[ | 
					
						
							|  |  |  |  | <?php | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  |  | // efface toutes les variables de configuration assign<67>es | 
					
						
							|  |  |  |  | $smarty->clear_config(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // efface une seule variable | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  | $smarty->clear_config('foobar'); | 
					
						
							|  |  |  |  | ?> | 
					
						
							|  |  |  |  | ]]> | 
					
						
							|  |  |  |  |    </programlisting> | 
					
						
							|  |  |  |  |   </example> | 
					
						
							| 
									
										
										
										
											2005-05-25 16:49:34 +00:00
										 |  |  |  |   <para> | 
					
						
							|  |  |  |  |    Voir aussi les | 
					
						
							| 
									
										
										
										
											2005-12-04 21:46:10 +00:00
										 |  |  |  |    <link linkend="api.get.config.vars">get_config_vars()</link>, | 
					
						
							| 
									
										
										
										
											2005-05-25 16:49:34 +00:00
										 |  |  |  |    <link linkend="language.config.variables">variables de configuration</link>, | 
					
						
							|  |  |  |  |    <link linkend="config.files">config files</link>, | 
					
						
							|  |  |  |  |    <link linkend="language.function.config.load">{config_load}</link>, | 
					
						
							|  |  |  |  |    <link linkend="api.config.load">config_load()</link> et | 
					
						
							|  |  |  |  |    <link linkend="api.clear.assign">clear_assign()</link>. | 
					
						
							|  |  |  |  |   </para> | 
					
						
							| 
									
										
										
										
											2004-12-26 17:02:12 +00:00
										 |  |  |  |  </refsect1> | 
					
						
							|  |  |  |  | </refentry> | 
					
						
							| 
									
										
										
										
											2005-05-25 16:49:34 +00:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  |  | <!-- Keep this comment at the end of the file
 | 
					
						
							|  |  |  |  | Local variables: | 
					
						
							|  |  |  |  | mode: sgml | 
					
						
							|  |  |  |  | sgml-omittag:t | 
					
						
							|  |  |  |  | sgml-shorttag:t | 
					
						
							|  |  |  |  | sgml-minimize-attributes:nil | 
					
						
							|  |  |  |  | sgml-always-quote-attributes:t | 
					
						
							|  |  |  |  | sgml-indent-step:1 | 
					
						
							|  |  |  |  | sgml-indent-data:t | 
					
						
							|  |  |  |  | indent-tabs-mode:nil | 
					
						
							|  |  |  |  | sgml-parent-document:nil | 
					
						
							|  |  |  |  | sgml-default-dtd-file:"../../../../manual.ced" | 
					
						
							|  |  |  |  | sgml-exposed-tags:nil | 
					
						
							|  |  |  |  | sgml-local-catalogs:nil | 
					
						
							|  |  |  |  | sgml-local-ecat-files:nil | 
					
						
							|  |  |  |  | End: | 
					
						
							|  |  |  |  | vim600: syn=xml fen fdm=syntax fdl=2 si | 
					
						
							|  |  |  |  | vim: et tw=78 syn=sgml | 
					
						
							|  |  |  |  | vi: ts=1 sw=1 | 
					
						
							| 
									
										
										
										
											2005-05-25 16:49:34 +00:00
										 |  |  |  | --> |