cvs: smarty /docs/en programmers.xml

"Nuno Lopes" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsnlopess1079980850@cvsserver>
nlopess		Mon Mar 22 13:40:50 2004 EDT

  Modified files:              
    /smarty/docs/en	programmers.xml 
  Log:
  upgrading to docbook 4
  now make test doesnt report any error
  
http://cvs.php.net/diff.php/smarty/docs/en/programmers.xml?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/en/programmers.xml
diff -u smarty/docs/en/programmers.xml:1.1 smarty/docs/en/programmers.xml:1.2
--- smarty/docs/en/programmers.xml:1.1	Thu Mar 18 12:16:23 2004
+++ smarty/docs/en/programmers.xml	Mon Mar 22 13:40:49 2004
@@ -707,20 +707,19 @@
 $smarty->clear_assign("Name");
 
 // clear multiple variables
-$smarty->clear_assign(array("Name","Address","Zip"));</programlisting>
+$smarty->clear_assign(array("Name","Address","Zip"));
+</programlisting>
 </example>
 		</sect1>
 		<sect1 id="api.clear.cache">
 			<title>clear_cache</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>void <function>clear_cache</function></funcdef>
-				<paramdef>string <parameter>template</parameter></paramdef>
-				<paramdef>string <parameter><optional>cache id</optional></parameter></paramdef>
-				<paramdef>string <parameter><optional>compile id</optional></parameter></paramdef>
-				<paramdef>int <parameter><optional>expire time</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>void</type><methodname>clear_cache</methodname>
+				<methodparam choice="opt"><type>string</type><parameter>template</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>cache id</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>compile id</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>expire time</parameter></methodparam>
+			</methodsynopsis>
 			<para>
 				This clears the cache for a specific template. If you have
 				multiple caches for this template, you can clear a specific
@@ -744,14 +743,12 @@
 		</sect1>
 		<sect1 id="api.clear.compiled.tpl">
 			<title>clear_compiled_tpl</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>void <function>clear_compiled_tpl</function></funcdef>
-				<paramdef>string <parameter><optional>tpl_file</optional></parameter></paramdef>
-				<paramdef>string <parameter><optional>compile_id</optional></parameter></paramdef>
-				<paramdef>int <parameter><optional>exp_time</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>void</type><methodname>clear_compiled_tpl</methodname>
+				<methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>exp_time</parameter></methodparam>
+			</methodsynopsis>
 			<para>
 			This clears the compiled version of the specified template
 			resource, or all compiled template files if one is not specified.
@@ -773,12 +770,10 @@
 		</sect1>
 		<sect1 id="api.clear.config">
 			<title>clear_config</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>void <function>clear_config</function></funcdef>
-				<paramdef>string <parameter><optional>var</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>void</type><methodname>clear_config</methodname>
+				<methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam>
+			</methodsynopsis>
 			<para>
 			This clears all assigned config variables. If a variable name is
 			supplied, only that variable is cleared.
@@ -795,13 +790,11 @@
 		</sect1>
 		<sect1 id="api.config.load">
 			<title>config_load</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>void <function>config_load</function></funcdef>
-				<paramdef>string <parameter>file</parameter></paramdef>
-				<paramdef>string <parameter><optional>section</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>void</type><methodname>config_load</methodname>
+				<methodparam><type>string</type><parameter>file</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam>
+			</methodsynopsis>
 			<para>
 			This loads config file data and assigns it to the template. This
 			works identical to the template <link
@@ -831,14 +824,12 @@
 		</sect1>
 		<sect1 id="api.display">
 			<title>display</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>void <function>display</function></funcdef>
-				<paramdef>string <parameter>template</parameter></paramdef>
-				<paramdef>string <parameter><optional>cache_id</optional></parameter></paramdef>
-				<paramdef>string <parameter><optional>compile_id</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>void</type><methodname>display</methodname>
+				<methodparam><type>string</type><parameter>template</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
+			</methodsynopsis>
 			<para>
                 This displays the template. Supply a valid <link
                 linkend="template.resources">template resource</link>
@@ -910,14 +901,12 @@
 		</sect1>
 		<sect1 id="api.fetch">
 			<title>fetch</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>string <function>fetch</function></funcdef>
-				<paramdef>string <parameter>template</parameter></paramdef>
-				<paramdef>string <parameter><optional>cache_id</optional></parameter></paramdef>
-				<paramdef>string <parameter><optional>compile_id</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>string</type><methodname>fetch</methodname>
+				<methodparam><type>string</type><parameter>template</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
+				<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
+			</methodsynopsis>
 			<para>
                 This returns the template output instead of displaying it.
                 Supply a valid <link
@@ -974,12 +963,10 @@
 		</sect1>
 		<sect1 id="api.get.config.vars">
 			<title>get_config_vars</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>array <function>get_config_vars</function></funcdef>
-				<paramdef>string <parameter><optional>varname</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>array</type><methodname>get_config_vars</methodname>
+				<methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam>
+			</methodsynopsis>
 			<para>
 				This returns the given loaded config variable value. If no parameter
 				is given, an array of all loaded config variables is returned.
@@ -1024,12 +1011,10 @@
 		</sect1>
 		<sect1 id="api.get.template.vars">
 			<title>get_template_vars</title>
-			<funcsynopsis>
-			<funcprototype>
-			<funcdef>array <function>get_template_vars</function></funcdef>
-				<paramdef>string <parameter><optional>varname</optional></parameter></paramdef>
-			</funcprototype>
-			</funcsynopsis>
+			<methodsynopsis>
+			<type>array</type><methodname>get_template_vars</methodname>
+				<methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam>
+			</methodsynopsis>
 			<para>
 				This returns the given assigned variable value. If no parameter
 				is given, an array of all assigned variables is returned.

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.