cvs: peardoc /en/guide/developers/package2 tasks.xml

From: Date: Sun, 18 Sep 2005 05:18:05 +0000
Subject: cvs: peardoc /en/guide/developers/package2 tasks.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6844@lists.php.net to get a copy of this message
cellog Sun Sep 18 01:18:05 2005 EDT Modified files: /peardoc/en/guide/developers/package2 tasks.xml Log: update post-install task documentation to use namespace properly http://cvs.php.net/diff.php/peardoc/en/guide/developers/package2/tasks.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/guide/developers/package2/tasks.xml diff -u peardoc/en/guide/developers/package2/tasks.xml:1.3 peardoc/en/guide/developers/package2/tasks.xml:1.4 --- peardoc/en/guide/developers/package2/tasks.xml:1.3 Fri Mar 18 20:18:04 2005 +++ peardoc/en/guide/developers/package2/tasks.xml Sun Sep 18 01:18:00 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="guide.developers.package2.tasks"> <refnamediv> <refname>tasks for &lt;file&gt;s</refname> @@ -102,14 +102,14 @@ <programlisting role="xml"> <![CDATA[ <tasks:postinstallscript> - <paramgroup> - <id>first</id> - <param> - <name>test</name> - <prompt>Testing Thingy</prompt> - <type>string</type> - </param> - </paramgroup> + <tasks:paramgroup> + <tasks:id>first</tasks:id> + <tasks:param> + <tasks:name>test</tasks:name> + <tasks:prompt>Testing Thingy</tasks:prompt> + <tasks:type>string</tasks:type> + </tasks:param> + </tasks:paramgroup> </tasks:postinstallscript> ]]> </programlisting> @@ -122,37 +122,37 @@ <programlisting role="xml"> <![CDATA[ <tasks:postinstallscript> - <paramgroup> - <id>first</id> - <param> - <name>test</name> - <prompt>Testing Thingy</prompt> - <type>string</type> - <default>hi</default> - </param> - <param> - <name>test2</name> - <prompt>Testing Thingy 2</prompt> - <type>string</type> - </param> - </paramgroup> - <paramgroup> - <id>second</id> - <name>first::test</name> - <conditiontype>preg_match</conditiontype> - <value>g+</value> - <param> - <name>test</name> - <prompt>Testing Thingy a</prompt> - <type>string</type> - <default>hi</default> - </param> - <param> - <name>test2</name> - <prompt>Testing Thingy b</prompt> - <type>string</type> - </param> - </paramgroup> + <tasks:paramgroup> + <tasks:id>first</tasks:id> + <tasks:param> + <tasks:name>test</tasks:name> + <tasks:prompt>Testing Thingy</tasks:prompt> + <tasks:type>string</tasks:type> + <tasks:default>hi</tasks:default> + </tasks:param> + <tasks:param> + <tasks:name>test2</tasks:name> + <tasks:prompt>Testing Thingy 2</tasks:prompt> + <tasks:type>string</tasks:type> + </tasks:param> + </tasks:paramgroup> + <tasks:paramgroup> + <tasks:id>second</tasks:id> + <tasks:name>first::test</tasks:name> + <tasks:conditiontype>preg_match</tasks:conditiontype> + <tasks:value>g+</tasks:value> + <tasks:param> + <tasks:name>test</tasks:name> + <tasks:prompt>Testing Thingy a</tasks:prompt> + <tasks:type>string</tasks:type> + <tasks:default>hi</tasks:default> + </tasks:param> + <tasks:param> + <tasks:name>test2</tasks:name> + <tasks:prompt>Testing Thingy b</tasks:prompt> + <tasks:type>string</tasks:type> + </tasks:param> + </tasks:paramgroup> </tasks:postinstallscript> ]]> </programlisting> @@ -162,37 +162,37 @@ the second group is processed (naturally). However, in this case, the second group is a conditional parameter group. A conditional parameter group examines the user input from previous parameter groups and only displays its parameter prompts if a single parameter - fits a test. The condition is defined by three tags, &lt;name&gt;, &lt;conditiontype&gt;, - and &lt;value&gt;. Note that all three tags are required or xml validation will fail. + fits a test. The condition is defined by three tags, &lt;tasks:name&gt;, &lt;tasks:conditiontype&gt;, + and &lt;tasks:value&gt;. Note that all three tags are required or xml validation will fail. </para> <para> - &lt;name&gt; is the parameter name from a previous parameter group. The format of name is + &lt;tasks:name&gt; is the parameter name from a previous parameter group. The format of name is groupID::parameterName, so as you see above, &quot;first::test&quot; refers to the - &lt;param&gt; first from the &lt;paramgroup&gt; test. + &lt;tasks:param&gt; first from the &lt;tasks:paramgroup&gt; test. </para> <para> - &lt;conditiontype&gt; determines how the parameter input function will process the value of - the parameter specified in &lt;name&gt;, and can be one of three values, &quot;=&quot; &quot;!=&quot; + &lt;tasks:conditiontype&gt; determines how the parameter input function will process the value of + the parameter specified in &lt;tasks:name&gt;, and can be one of three values, &quot;=&quot; &quot;!=&quot; or &quot;preg_match&quot;. </para> <para> <itemizedlist> <listitem> <para> - =: This (obviously) tests whether the parameters value is equal to the &lt;value&gt; tag + =: This (obviously) tests whether the parameters value is equal to the &lt;tasks:value&gt; tag </para> </listitem> <listitem> <para> - !=: This (obviously) tests whether the parameters value is not equal to the &lt;value&gt; tag + !=: This (obviously) tests whether the parameters value is not equal to the &lt;tasks:value&gt; tag </para> </listitem> <listitem> <para> - preg_match: This uses the content of the &lt;value&gt; tag as if it were the stuff between + preg_match: This uses the content of the &lt;tasks:value&gt; tag as if it were the stuff between / and / in a <ulink url="&url.php;preg_match"><function>preg_match</function></ulink> function call. Do NOT include // brackets in - the regular expression. In the &lt;paramgroup&gt; second, the value &quot;g+&quot; will become: + the regular expression. In the &lt;tasks:paramgroup&gt; second, the value &quot;g+&quot; will become: <programlisting role="php"> <![CDATA[ <?php

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