cvs: peardoc /en/guide/developers/package2 tasks.xml
| From: | Greg Beaver | 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 <file>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, <name>,
<conditiontype>,
- and <value>. Note that all three tags are required or xml validation will fail.
+ fits a test. The condition is defined by three tags, <tasks:name>,
<tasks:conditiontype>,
+ and <tasks:value>. Note that all three tags are required or xml validation will
fail.
</para>
<para>
- <name> is the parameter name from a previous parameter group. The format of name
is
+ <tasks:name> is the parameter name from a previous parameter group. The format of
name is
groupID::parameterName, so as you see above, "first::test" refers to the
- <param> first from the <paramgroup> test.
+ <tasks:param> first from the <tasks:paramgroup> test.
</para>
<para>
- <conditiontype> determines how the parameter input function will process the
value of
- the parameter specified in <name>, and can be one of three values,
"=" "!="
+ <tasks:conditiontype> determines how the parameter input function will process
the value of
+ the parameter specified in <tasks:name>, and can be one of three values,
"=" "!="
or "preg_match".
</para>
<para>
<itemizedlist>
<listitem>
<para>
- =: This (obviously) tests whether the parameters value is equal to the <value>
tag
+ =: This (obviously) tests whether the parameters value is equal to the
<tasks:value> tag
</para>
</listitem>
<listitem>
<para>
- !=: This (obviously) tests whether the parameters value is not equal to the
<value> tag
+ !=: This (obviously) tests whether the parameters value is not equal to the
<tasks:value> tag
</para>
</listitem>
<listitem>
<para>
- preg_match: This uses the content of the <value> tag as if it were the stuff
between
+ preg_match: This uses the content of the <tasks:value> 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 <paramgroup> second, the value
"g+" will become:
+ the regular expression. In the <tasks:paramgroup> second, the value
"g+" will become:
<programlisting role="php">
<![CDATA[
<?php