cvs: peardoc /en/package/xml xml-util.xml /en/package/xml/xml-util/xml-util attributestostring.xml collapseemptytags.xml reverseentities.xml

From: Date: Mon, 22 Nov 2004 23:12:42 +0000
Subject: cvs: peardoc /en/package/xml xml-util.xml /en/package/xml/xml-util/xml-util attributestostring.xml collapseemptytags.xml reverseentities.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5191@lists.php.net to get a copy of this message
schst Mon Nov 22 18:12:42 2004 EDT Added files: /peardoc/en/package/xml/xml-util/xml-util collapseemptytags.xml reverseentities.xml Modified files: /peardoc/en/package/xml xml-util.xml /peardoc/en/package/xml/xml-util/xml-util attributestostring.xml Log: reflect latest releases

http://cvs.php.net/diff.php/peardoc/en/package/xml/xml-util.xml?r1=1.5&r2=1.6&ty=u Index: peardoc/en/package/xml/xml-util.xml diff -u peardoc/en/package/xml/xml-util.xml:1.5 peardoc/en/package/xml/xml-util.xml:1.6 --- peardoc/en/package/xml/xml-util.xml:1.5 Tue Sep 23 05:09:36 2003 +++ peardoc/en/package/xml/xml-util.xml Mon Nov 22 18:12:41 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <sect1 id="package.xml.xml-util"> <title>XML_Util</title> @@ -10,6 +10,7 @@ &package.xml.xml-util.example; &package.xml.xml-util.xml-util.apiversion; &package.xml.xml-util.xml-util.attributestostring; + &package.xml.xml-util.xml-util.collapseemptytags; &package.xml.xml-util.xml-util.createtag; &package.xml.xml-util.xml-util.createtagfromarray; &package.xml.xml-util.xml-util.createstartelement; @@ -20,6 +21,7 @@ &package.xml.xml-util.xml-util.getxmldeclaration; &package.xml.xml-util.xml-util.isvalidname; &package.xml.xml-util.xml-util.replaceentities; + &package.xml.xml-util.xml-util.reverseentities; &package.xml.xml-util.xml-util.splitqualifiedname; </sect1> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/peardoc/en/package/xml/xml-util/xml-util/attributestostring.xml?r1=1.5&r2=1.6&ty=u Index: peardoc/en/package/xml/xml-util/xml-util/attributestostring.xml diff -u peardoc/en/package/xml/xml-util/xml-util/attributestostring.xml:1.5 peardoc/en/package/xml/xml-util/xml-util/attributestostring.xml:1.6 --- peardoc/en/package/xml/xml-util/xml-util/attributestostring.xml:1.5 Tue Sep 9 15:34:20 2003 +++ peardoc/en/package/xml/xml-util/xml-util/attributestostring.xml Mon Nov 22 18:12:42 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.xml.xml-util.xml-util.attributestostring"> <refnamediv> <refname><function>XML_Util::attributesToString</function></refname> @@ -13,6 +13,10 @@ <funcdef>string <function>XML_Util::attributesToString</function></funcdef> <paramdef>array <parameter>$attributes</parameter></paramdef> <paramdef>boolean <parameter> <optional>$sort = &true;</optional></parameter></paramdef> + <paramdef>boolean <parameter> <optional>$multiline = &false;</optional></parameter></paramdef> + <paramdef>string <parameter> <optional>$indent = ' '</optional></parameter></paramdef> + <paramdef>string <parameter> <optional>$linebreak = "\n"</optional></parameter></paramdef> + <paramdef>integer <parameter> <optional>$entities = XML_UTIL_ENTITIES_XML</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -37,6 +41,27 @@ <parameter>boolean $sort</parameter> - whether to sort the attributes alphabetically </para> </listitem> + <listitem> + <para> + <parameter>boolean $multiline</parameter> - whether to display the attributes on more than one line (makes it easier to read) + </para> + </listitem> + <listitem> + <para> + <parameter>string $indent</parameter> - indentation characters, only used when multiline is set to &true; + </para> + </listitem> + <listitem> + <para> + <parameter>string $linebreak</parameter> - linebreak character, only used when multiline is set to &true; + </para> + </listitem> + <listitem> + <para> + <parameter>integer $entities</parameter> - define, which entities should be replaced in the attribute values. One of + XML_UTIL_ENTITIES_NONE, XML_UTIL_ENTITIES_XML, XML_UTIL_ENTITIES_XML_REQUIRED or XML_UTIL_ENTITIES_HTML + </para> + </listitem> </itemizedlist> </para> </refsect1> http://cvs.php.net/co.php/peardoc/en/package/xml/xml-util/xml-util/collapseemptytags.xml?r=1.1&p=1 Index: peardoc/en/package/xml/xml-util/xml-util/collapseemptytags.xml +++ peardoc/en/package/xml/xml-util/xml-util/collapseemptytags.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-util.xml-util.collapseemptytags"> <refnamediv> <refname><function>XML_Util::collapseemptytags</function></refname> <refpurpose>replace XML entities</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::collapseEmptyTags</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> <paramdef>integer <parameter><optional>$mode = XML_UTIL_COLLAPSE_ALL</optional</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.collapseemptytags.desc"> &title.desc; <para> This method collapses empty tags like &lt;foo&gt;&lt;/foo&gt; with the short version &lt;foo/&gt; by applying a regular expression. This is especially helpful when dealing with XHML-documents, as there is an important difference in rendering these tags in the browser. </para> <para> This method has been added in XML_Util 1.1.0. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.collapseemptytags.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - string, in which empty tags should be collapsed </para> </listitem> <listitem> <para> <parameter>integer $mode</parameter> - collapse all empty tags (XML_UTIL_COLLAPSE_ALL) or only XHTML tags (XML_UTIL_COLLAPSE_XHTML_ONLY). </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.collapseemptytags.return"> &title.returns; <para> <emphasis>string</emphasis> string with collapsed empty tags </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.collapseemptytags.note"> &title.note; &note.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 --> http://cvs.php.net/co.php/peardoc/en/package/xml/xml-util/xml-util/reverseentities.xml?r=1.1&p=1 Index: peardoc/en/package/xml/xml-util/xml-util/reverseentities.xml +++ peardoc/en/package/xml/xml-util/xml-util/reverseentities.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-util.xml-util.reverseentities"> <refnamediv> <refname><function>XML_Util::reverseentities</function></refname> <refpurpose>replace XML entities</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::reverseEntities</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.reverseentities.desc"> &title.desc; <para> This is the reverse function to <function>XML_Util::replaceEntities()</function>. It replaces all XML (or HTML) entities in a string by their corresponding characters. This can be useful when working with XML documents without using an XML parser. </para> <para> This method has been added in XML_Util 1.0.0. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.reverseentities.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - string, in which entities have to be removed </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.reverseentities.return"> &title.returns; <para> <emphasis>string</emphasis> string with entities removed </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.reverseentities.note"> &title.note; &note.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 -->
« previous php.pear.doc (#5191) next »