cvs: peardoc /en/package/html html-template-it.xml /en/package/html/html-template-it setoption.xml

From: Date: Thu, 30 Nov 2006 18:46:31 +0000
Subject: cvs: peardoc /en/package/html html-template-it.xml /en/package/html/html-template-it setoption.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8936@lists.php.net to get a copy of this message
dsp Thu Nov 30 18:46:31 2006 UTC Added files: /peardoc/en/package/html/html-template-it setoption.xml Modified files: /peardoc/en/package/html html-template-it.xml Log: add english for setoption http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-template-it.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/html/html-template-it.xml diff -u peardoc/en/package/html/html-template-it.xml:1.2 peardoc/en/package/html/html-template-it.xml:1.3 --- peardoc/en/package/html/html-template-it.xml:1.2 Mon Mar 10 22:27:43 2003 +++ peardoc/en/package/html/html-template-it.xml Thu Nov 30 18:46:31 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect1 id="package.html.html-template-it"> <title>HTML_Template_IT</title> @@ -10,6 +10,7 @@ &package.html.html-template-it.parsecurrentblock; &package.html.html-template-it.setcurrentblock; &package.html.html-template-it.setroot; + &package.html.html-template-it.setoption; &package.html.html-template-it.settemplate; &package.html.html-template-it.setvariable; &package.html.html-template-it.show; http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-template-it/setoption.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-template-it/setoption.xml +++ peardoc/en/package/html/html-template-it/setoption.xml <?xml version='1.0' encoding='ISO-8859-1' ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dsp Status: ready --> <refentry id="package.html.html-template-it.setoption"> <refnamediv> <refname>HTML_Template_IT::setOption()</refname> <refpurpose>sets an option</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Template/IT.php'; </funcsynopsisinfo> <funcprototype> <funcdef>int <function>HTML_Template_IT::setOption</function></funcdef> <paramdef>string <parameter>$option</parameter></paramdef> <paramdef>mixed <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-it.setoption.desc"> &title.desc; <para> Sets an option. Please notice that changing some option might result in an unexpected behaviour of HTML_Template_IT. </para> </refsect1> <refsect1 id="package.html.html-template-it.setoption.return"> &title.returns; <para> <parameter>int</parameter> - Returns 1 on success, otherwise an IT_Error object. </para> </refsect1> <refsect1 id="package.html.html-template-it.setoption.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $option</parameter> - Option identifier </para> </listitem> <listitem> <para> <parameter>mixed $value</parameter> - New value of the option </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.html.html-template-it.setoption.options"> <title>Options</title> <table> <title>Possible options:</title> <tgroup cols="2"> <thead> <row> <entry>Option</entry> <entry>Default value</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry> <literal>removeUnknownVariables</literal> </entry> <entry> <literal>&true;</literal> </entry> <entry> If &true; all template variables, which are not filled, are removed while parsing. This option is usually set by calling <function>HTML_Template_IT::loadTemplatefile</function> or <function>HTML_Template_IT::setTemplate</function>. </entry> </row> <row> <entry> <literal>removeEmptyBlocks</literal> </entry> <entry> <literal>&true;</literal> </entry> <entry> If &true; all blocks not containing any filled template variables are removed. This option is usually set by calling <function>HTML_Template_IT::loadTemplatefile</function> or <function>HTML_Template_IT::setTemplate</function>. </entry> </row> <row> <entry> <literal>clearCache</literal> </entry> <entry> <literal>&false;</literal> </entry> <entry> If &true; parsed blocks are not cached. <emphasis>If you don't know exactly what you do, just leave the default value</emphasis>. </entry> </row> <row> <entry> <literal>clearCacheOnParse</literal> </entry> <entry> <literal>&false;</literal> </entry> <entry> If &true; the variable cache will be cleaned after parsing. <emphasis>If you don't know exactly what you do, just leave the default value</emphasis>. </entry> </row> <row> <entry> <literal>openingDelimiter</literal> </entry> <entry> <literal>'{'</literal> </entry> <entry> Defines the character, every template variable has to start with. If you change this value, you have to call <function>init</function> to reinitialise the template. <emphasis>If you don't know exactly what you do, just leave the default value</emphasis>. </entry> </row> <row> <entry> <literal>closingDelimiter</literal> </entry> <entry> <literal>'}'</literal> </entry> <entry> Defines the character, every template variable has to end with. If you change this value, you have to call <function>init</function> to reinitialise the template. <emphasis>If you don't know exactly what you do, just leave the default value</emphasis>. </entry> </row> <row> <entry> <literal>blocknameRegExp</literal> </entry> <entry> <literal>'[\.0-9A-Za-z_-]+'</literal> </entry> <entry> The regular expression, thats used to parse block names. If you change this value, you have to call <function>init</function> to reinitialise the template. <emphasis>If you don't know exactly what you do, just leave the default value</emphasis>. </entry> </row> <row> <entry> <literal>variablenameRegExp</literal> </entry> <entry> <literal>'[\.0-9A-Za-z_-]+'</literal> </entry> <entry> The regular expression, thats used to parse template variable names. If you change this value, you have to call <function>init</function> to reinitialise the template. <emphasis>If you don't know exactly what you do, just leave the default value</emphasis>. </entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.html.html-template-it.setoption.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.html.html-template-it.setoption.see"> &title.see; <para> <link linkend="package.html.html-template-it.loadtemplatefile"> <function>HTML_Template_IT::loadTemplatefile</function></link> </para> <para> <link linkend="package.html.html-template-it.settemplate"> <function>HTML_Template_IT::setTemplate</function></link> </para> </refsect1> </refentry> <!-- 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 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 -->

« previous php.pear.doc (#8936) next »