cvs: peardoc /en/package/xml xml-util.xml /en/package/xml/xml-util/xml-util createcdatasection.xml createtag.xml createtagfromarray.xml
| From: | Stephan Schmidt | Date: | Sun, 21 Sep 2003 13:05:46 +0000 |
| Subject: | cvs: peardoc /en/package/xml xml-util.xml /en/package/xml/xml-util/xml-util createcdatasection.xml createtag.xml createtagfromarray.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1536@lists.php.net to get a copy of this message | ||
schst Sun Sep 21 09:05:46 2003 EDT
Added files:
/peardoc/en/package/xml/xml-util/xml-util createcdatasection.xml
Modified files:
/peardoc/en/package/xml xml-util.xml
/peardoc/en/package/xml/xml-util/xml-util createtag.xml
createtagfromarray.xml
Log:
updated documentation for XML_Util 0.4
Index: peardoc/en/package/xml/xml-util.xml
diff -u peardoc/en/package/xml/xml-util.xml:1.3 peardoc/en/package/xml/xml-util.xml:1.4
--- peardoc/en/package/xml/xml-util.xml:1.3 Fri Sep 12 06:30:50 2003
+++ peardoc/en/package/xml/xml-util.xml Sun Sep 21 09:05:46 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="package.xml.xml-util">
<title>XML_Util</title>
@@ -14,6 +14,7 @@
&package.xml.xml-util.xml-util.createtagfromarray;
&package.xml.xml-util.xml-util.createstartelement;
&package.xml.xml-util.xml-util.createendelement;
+ &package.xml.xml-util.xml-util.createcdatasection;
&package.xml.xml-util.xml-util.getdoctypedeclaration;
&package.xml.xml-util.xml-util.getxmldeclaration;
&package.xml.xml-util.xml-util.isvalidname;
Index: peardoc/en/package/xml/xml-util/xml-util/createtag.xml
diff -u peardoc/en/package/xml/xml-util/xml-util/createtag.xml:1.5
peardoc/en/package/xml/xml-util/xml-util/createtag.xml:1.6
--- peardoc/en/package/xml/xml-util/xml-util/createtag.xml:1.5 Tue Sep 9 15:34:20 2003
+++ peardoc/en/package/xml/xml-util/xml-util/createtag.xml Sun Sep 21 09:05:46 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="package.xml.xml-util.xml-util.createtag">
<refnamediv>
<refname><function>XML_Util::createTag</function></refname>
@@ -15,7 +15,7 @@
<paramdef>array <parameter> <optional>$attributes =
array()</optional></parameter></paramdef>
<paramdef>string <parameter> <optional>$content =
&null;</optional></parameter></paramdef>
<paramdef>string <parameter> <optional>$namespaceUri =
&null;</optional></parameter></paramdef>
- <paramdef>boolean <parameter> <optional>$replaceEntities =
&true;</optional></parameter></paramdef>
+ <paramdef>integer <parameter> <optional>$replaceEntities =
XML_UTIL_REPLACE_ENTITIES</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
@@ -52,7 +52,8 @@
</listitem>
<listitem>
<para>
- <parameter>boolean $replaceEntities</parameter> - whether to replace XML
entities in content
+ <parameter>integer $replaceEntities</parameter> - whether to replace XML
entities in content, embedd it in a CData section or leave it untouched.
+ Possible values are &false;, XML_UTIL_REPLACE_ENTITIES or XML_UTIL_CDATA_SECTION.
</para>
</listitem>
</itemizedlist>
Index: peardoc/en/package/xml/xml-util/xml-util/createtagfromarray.xml
diff -u peardoc/en/package/xml/xml-util/xml-util/createtagfromarray.xml:1.6
peardoc/en/package/xml/xml-util/xml-util/createtagfromarray.xml:1.7
--- peardoc/en/package/xml/xml-util/xml-util/createtagfromarray.xml:1.6 Tue Sep 9 15:34:20 2003
+++ peardoc/en/package/xml/xml-util/xml-util/createtagfromarray.xml Sun Sep 21 09:05:46 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<refentry id="package.xml.xml-util.xml-util.createtagfromarray">
<refnamediv>
<refname><function>XML_Util::createTagFromArray</function></refname>
@@ -12,7 +12,7 @@
<funcprototype>
<funcdef>string
<function>XML_Util::createTagFromArray</function></funcdef>
<paramdef>array <parameter>$tag</parameter></paramdef>
- <paramdef>boolean <parameter> <optional>$replaceEntities =
&true;</optional></parameter></paramdef>
+ <paramdef>integer <parameter> <optional>$replaceEntities =
XML_UTIL_REPLACE_ENTITIES</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
@@ -34,7 +34,8 @@
</listitem>
<listitem>
<para>
- <parameter>boolean $replaceEntities</parameter> - whether to replace XML
entities in content
+ <parameter>integer $replaceEntities</parameter> - whether to replace XML
entities in content, embedd it in a CData section or leave it untouched.
+ Possible values are &false;, XML_UTIL_REPLACE_ENTITIES or XML_UTIL_CDATA_SECTION.
</para>
</listitem>
</itemizedlist>
Index: peardoc/en/package/xml/xml-util/xml-util/createcdatasection.xml
+++ peardoc/en/package/xml/xml-util/xml-util/createcdatasection.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.xml.xml-util.xml-util.createcdatasection">
<refnamediv>
<refname><function>XML_Util::createCDataSection</function></refname>
<refpurpose>create a CData section</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
require_once 'XML/Util.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>string
<function>XML_Util::createCDataSection</function></funcdef>
<paramdef>string <parameter>$data</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.xml.xml-util.xml-util.createcdatasection.desc">
&title.desc;
<para>
Creates a CData section, by embedding the data in
<!CDATA[ and ]]>. If you use a CData section inside an
XML document, entities do not have to be replaced in this sections.
</para>
</refsect1>
<refsect1 id="package.default.xml-util.xml-util.createcdatasection.param">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
<parameter>string $data</parameter> - data for the CData section.
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 id="package.xml.xml-util.xml-util.createcdatasection.return">
&title.returns;
<para>
<emphasis>string</emphasis> CData section
</para>
</refsect1>
<refsect1 id="package.xml.xml-util.xml-util.createcdatasection.note">
&title.note;
¬e.shouldstatic;
</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
-->