cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/com book.xml constants.xml error-handling.xml examples.xml reference.xml setup.xml
/en/reference/com/functions class.com.xml com-isenum.xml /en/reference/dotnet book.xml constants.xml reference.xml setup.xml /en/reference/url
reference.xml
| From: | Philip Olson | Date: | Sat, 08 Dec 2007 23:48:14 +0000 |
| Subject: | cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/com book.xml constants.xml error-handling.xml examples.xml reference.xml setup.xml /en/reference/com/functions class.com.xml com-isenum.xml /en/reference/dotnet book.xml constants.xml reference.xml setup.xml /en/reference/url reference.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-574@lists.php.net to get a copy of this message | ||
philip Sat Dec 8 23:48:14 2007 UTC
Added files: (Branch: REF_STRUCT_DEV)
/phpdoc/en/reference/com book.xml error-handling.xml examples.xml
setup.xml
/phpdoc/en/reference/dotnet book.xml constants.xml setup.xml
Modified files:
/phpdoc manual.xml.in
/phpdoc/en/reference/com constants.xml reference.xml
/phpdoc/en/reference/com/functions class.com.xml com-isenum.xml
/phpdoc/en/reference/dotnet reference.xml
/phpdoc/en/reference/url reference.xml
Log:
Finished upgrade of refs.utilspec.windows to the new-ref-struct
# Hannes, please check this one ;)
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.36&r2=1.224.2.37&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.36 phpdoc/manual.xml.in:1.224.2.37 --- phpdoc/manual.xml.in:1.224.2.36 Sat Dec 8 23:09:35 2007 +++ phpdoc/manual.xml.in Sat Dec 8 23:48:13 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.36 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.37 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -402,10 +402,8 @@ <set xml:id="refs.utilspec.windows"> <title>Windows Only Extensions</title> - <!-- &reference.dotnet.book; &reference.com.book; - --> &reference.w32api.book; &reference.win32ps.book; &reference.win32service.book; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/constants.xml?r1=1.5&r2=1.5.2.1&diff_format=u Index: phpdoc/en/reference/com/constants.xml diff -u phpdoc/en/reference/com/constants.xml:1.5 phpdoc/en/reference/com/constants.xml:1.5.2.1 --- phpdoc/en/reference/com/constants.xml:1.5 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/com/constants.xml Sat Dec 8 23:48:13 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="com.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5.2.1 $ --> +<chapter xml:id="com.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -466,7 +466,7 @@ </variablelist> -</section> +</chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/com/reference.xml diff -u phpdoc/en/reference/com/reference.xml:1.14.2.1 phpdoc/en/reference/com/reference.xml:1.14.2.2 --- phpdoc/en/reference/com/reference.xml:1.14.2.1 Wed Oct 3 11:41:08 2007 +++ phpdoc/en/reference/com/reference.xml Sat Dec 8 23:48:13 2007 @@ -1,222 +1,25 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> +<!-- $Revision: 1.14.2.2 $ --> <!-- Purpose: utilspec.windows --> <!-- Membership: bundled --> <reference xml:id="ref.com" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>COM and .Net (Windows)</title> - <titleabbrev>COM</titleabbrev> - <partintro> - - <section xml:id="com.intro"> - &reftitle.intro; - <para> - COM is an acronym for Component Object Model; it is an object orientated - layer (and associated services) on top of DCE RPC (an open standard) and - defines a common calling convention that enables code written in any - language to call and interoperate with code written in any other language - (provided those languages are COM aware). Not only can the code be - written in any language, but it need not even be part of the same - executable; the code can be loaded from a DLL, be found in another - process running on the same machine, or, with DCOM (Distributed COM), be - found in another process on a remote machine, all without your code even - needing to know where a component resides. - </para> - <para> - There is a subset of COM known as OLE Automation which comprises a set of - COM interfaces that allow loose binding to COM objects, so that they can - be introspected and called at run-time without compile-time knowledge of - how the object works. The PHP COM extension utilizes the OLE - Automation interfaces to allow you to create and call compatible objects - from your scripts. Technically speaking, this should really be called - the "OLE Automation Extension for PHP", since not all COM objects are OLE - compatible. - </para> - <para> - Now, why would or should you use COM? COM is one of the main ways to glue - applications and components together on the Windows platform; using COM - you can launch Microsoft Word, fill in a document template and save the - result as a Word document and send it to a visitor of your web site. You - can also use COM to perform administrative tasks for your network and to - configure your IIS; these are just the most common uses; you can do much - more with COM. - </para> - <para> - Starting with PHP 5, this extension (and this documentation) was - rewritten from scratch and much of the old confusing and bogus cruft has - be removed. Additionally, we support the instantiation and creation of - .Net assemblies using the COM interoperability layer provided by - Microsoft. - </para> - <para> - Please read <link xlink:href="&url.zend.comdotnet;">this article</link> - for an overview of the changes in this extension in PHP 5. - </para> - </section> - - <section xml:id="com.requirements"> - &reftitle.required; - <para> - COM functions are only available for the Windows version of PHP. - </para> - <para> - .Net support requires PHP 5 and the .Net runtime. - </para> - </section> - - <section xml:id="com.installation"> - &reftitle.install; - &no.install; - &windows.builtin; - <para> - You are responsible for installing support for the various COM objects - that you intend to use (such as MS Word); we don't and can't bundle all - of those with PHP. - </para> - </section> - - <section xml:id="com.foreach"> - <title>For Each</title> - - <para> - Starting with PHP 5, you may use PHP's own <link - linkend="control-structures.foreach">foreach</link> statement to iterate - over the contents of a standard COM/OLE IEnumVariant. In laymans terms, - this means that you can use foreach in places where you would have used - <literal>For Each</literal> in VB/ASP code. - </para> - - <para> - <example> - <title>For Each in ASP</title> - <programlisting role="asp"> -<![CDATA[ -<% -Set domainObject = GetObject("WinNT://Domain") -For Each obj in domainObject - Response.Write obj.Name & "<br />" -Next -%> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>while() ... Next() in PHP 4</title> - <programlisting role="php"> -<![CDATA[ -<?php -$domainObject = new COM("WinNT://Domain"); -while ($obj = $domainObject->Next()) { - echo $obj->Name . "<br />"; -} -?> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>foreach in PHP 5</title> - <programlisting role="php"> -<![CDATA[ -<?php -$domainObject = new COM("WinNT://Domain"); -foreach ($domainObject as $obj) { - echo $obj->Name . "<br />"; -} -?> -]]> - </programlisting> - </example> - </para> - </section> - - <section xml:id="com.arrays"> - <title>Arrays and Array-style COM properties</title> - - <para> - Many COM objects expose their properties as arrays, or using array-style - access. In PHP 4, you may use PHP array syntax to read/write such a - property, but only a single dimension is allowed. If you want to read a - multi-dimensional property, you could instead make the property access - into a function call, with each parameter representing each dimension of - the array access, but there is no way to write to such a property. - </para> - - <para> - PHP 5 introduces the following new features to make your life easier: - - <itemizedlist> - <listitem> - <para> - Access multi-dimensional arrays, or COM properties that require - multiple parameters using PHP array syntax. You can also write or set - properties using this technique. - </para> - </listitem> - - <listitem> - <para> - Iterate SafeArrays ("true" arrays) using the <xref - linkend="control-structures.foreach"/> control structure. This works - because SafeArrays include information about their size. If an - array-style property implements IEnumVariant then you can also use - foreach for that property too; take a look at <xref - linkend="com.foreach"/> for more information on this topic. - </para> - </listitem> - </itemizedlist> - </para> - - </section> - - <section xml:id="com.exceptions"> - <title>Exceptions (PHP 5)</title> - - <para> - This extension will throw instances of the class <literal>com_exception</literal> - whenever there is a potentially fatal error reported by COM. All - COM exceptions have a well-defined <literal>code</literal> property that - corresponds to the HRESULT return value from the various COM operations. - You may use this code to make programmatic decisions on how to handle the - exception. - </para> - - </section> - - &reference.com.ini; - - <section xml:id="com.resources"> - &reftitle.resources; - <para> - This extension defines a reference to a COM component returned by - deprecated <function>com_load</function> (this function does not exist in - PHP 5; use the <xref linkend="class.com"/> class instead). - </para> - </section> - - &reference.com.constants; + <title>COM and .Net (Windows)</title> - <section xml:id="com.seealso"> - &reftitle.seealso; - <para> - For further information on COM read the <link xlink:href="&url.comspecs;">COM - specification</link> or perhaps take a look at Don Box's - <link xlink:href="&url.yacl;">Yet Another COM Library (YACL)</link>. - You might find some additional useful information in our FAQ for <xref - linkend="faq.com"/>. - If you're thinking of using MS Office applications on the server side, - you should read the information here: <link - xlink:href="&url.msoffice.serverside;">Considerations for Server-Side Automation - of Office</link>. - </para> - </section> - - </partintro> + <section xml:id="com.seealso"> + &reftitle.seealso; + <para> + For further information on COM read the <link xlink:href="&url.comspecs;">COM + specification</link> or perhaps take a look at Don Box's + <link xlink:href="&url.yacl;">Yet Another COM Library (YACL)</link>. + You might find some additional useful information in our FAQ for <xref + linkend="faq.com"/>. + If you're thinking of using MS Office applications on the server side, + you should read the information here: <link + xlink:href="&url.msoffice.serverside;">Considerations for Server-Side Automation + of Office</link>. + </para> + </section> &reference.com.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/functions/class.com.xml?r1=1.11&r2=1.11.2.1&diff_format=u Index: phpdoc/en/reference/com/functions/class.com.xml diff -u phpdoc/en/reference/com/functions/class.com.xml:1.11 phpdoc/en/reference/com/functions/class.com.xml:1.11.2.1 --- phpdoc/en/reference/com/functions/class.com.xml:1.11 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/com/functions/class.com.xml Sat Dec 8 23:48:13 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.11.2.1 $ --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.12 --> <refentry xml:id="class.com" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -215,7 +215,7 @@ <function>com_isenum</function> returns &true;, in which case, they hide any methods with the same names that might otherwise be provided by the COM object. These methods have all been eliminated in PHP 5, and you - should use <xref linkend="com.foreach"/> instead. + should use <xref linkend="com.examples.foreach"/> instead. </para> <methodsynopsis> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/functions/com-isenum.xml?r1=1.7&r2=1.7.2.1&diff_format=u Index: phpdoc/en/reference/com/functions/com-isenum.xml diff -u phpdoc/en/reference/com/functions/com-isenum.xml:1.7 phpdoc/en/reference/com/functions/com-isenum.xml:1.7.2.1 --- phpdoc/en/reference/com/functions/com-isenum.xml:1.7 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/com/functions/com-isenum.xml Sat Dec 8 23:48:13 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.7.2.1 $ --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.27 --> <refentry xml:id='function.com-isenum' xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -22,7 +22,7 @@ <para> This function does not exist in PHP 5; use the more natural <link linkend="control-structures.foreach">foreach</link> statement to iterate - over the contents of COM objects. See <xref linkend="com.foreach"/> for + over the contents of COM objects. See <xref linkend="com.examples.foreach"/> for more details. </para> </note> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/dotnet/reference.xml diff -u phpdoc/en/reference/dotnet/reference.xml:1.8.2.1 phpdoc/en/reference/dotnet/reference.xml:1.8.2.2 --- phpdoc/en/reference/dotnet/reference.xml:1.8.2.1 Wed Oct 3 11:41:09 2007 +++ phpdoc/en/reference/dotnet/reference.xml Sat Dec 8 23:48:13 2007 @@ -1,21 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> +<!-- $Revision: 1.8.2.2 $ --> <!-- Purpose: utilspec.windows --> <!-- Membership: bundled --> <!-- State: experimental --> <reference xml:id="ref.dotnet" xmlns="http://docbook.org/ns/docbook"> <title>.NET Functions</title> - <titleabbrev>.NET</titleabbrev> - <partintro> - <section xml:id="dotnet.intro"> - &reftitle.intro; - &warn.experimental; - </section> - </partintro> - -&reference.dotnet.functions.entities; + &reference.dotnet.functions.entities; </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/url/reference.xml?r1=1.7.2.4&r2=1.7.2.5&diff_format=u Index: phpdoc/en/reference/url/reference.xml diff -u phpdoc/en/reference/url/reference.xml:1.7.2.4 phpdoc/en/reference/url/reference.xml:1.7.2.5 --- phpdoc/en/reference/url/reference.xml:1.7.2.4 Sun Dec 2 14:03:39 2007 +++ phpdoc/en/reference/url/reference.xml Sat Dec 8 23:48:14 2007 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7.2.4 $ --> +<!-- $Revision: 1.7.2.5 $ --> -<reference xml:id="ref.url" xmlns="http://docbook.org/ns/docbook"> +<reference xml:id="ref.url" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>URL &Functions;</title> &reference.url.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/book.xml +++ phpdoc/en/reference/com/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/error-handling.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/error-handling.xml +++ phpdoc/en/reference/com/error-handling.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/examples.xml +++ phpdoc/en/reference/com/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/setup.xml +++ phpdoc/en/reference/com/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dotnet/book.xml +++ phpdoc/en/reference/dotnet/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dotnet/constants.xml +++ phpdoc/en/reference/dotnet/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dotnet/setup.xml +++ phpdoc/en/reference/dotnet/setup.xml
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.36&r2=1.224.2.37&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.36 phpdoc/manual.xml.in:1.224.2.37 --- phpdoc/manual.xml.in:1.224.2.36 Sat Dec 8 23:09:35 2007 +++ phpdoc/manual.xml.in Sat Dec 8 23:48:13 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.36 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.37 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -402,10 +402,8 @@ <set xml:id="refs.utilspec.windows"> <title>Windows Only Extensions</title> - <!-- &reference.dotnet.book; &reference.com.book; - --> &reference.w32api.book; &reference.win32ps.book; &reference.win32service.book; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/constants.xml?r1=1.5&r2=1.5.2.1&diff_format=u Index: phpdoc/en/reference/com/constants.xml diff -u phpdoc/en/reference/com/constants.xml:1.5 phpdoc/en/reference/com/constants.xml:1.5.2.1 --- phpdoc/en/reference/com/constants.xml:1.5 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/com/constants.xml Sat Dec 8 23:48:13 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="com.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5.2.1 $ --> +<chapter xml:id="com.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -466,7 +466,7 @@ </variablelist> -</section> +</chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/com/reference.xml diff -u phpdoc/en/reference/com/reference.xml:1.14.2.1 phpdoc/en/reference/com/reference.xml:1.14.2.2 --- phpdoc/en/reference/com/reference.xml:1.14.2.1 Wed Oct 3 11:41:08 2007 +++ phpdoc/en/reference/com/reference.xml Sat Dec 8 23:48:13 2007 @@ -1,222 +1,25 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> +<!-- $Revision: 1.14.2.2 $ --> <!-- Purpose: utilspec.windows --> <!-- Membership: bundled --> <reference xml:id="ref.com" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>COM and .Net (Windows)</title> - <titleabbrev>COM</titleabbrev> - <partintro> - - <section xml:id="com.intro"> - &reftitle.intro; - <para> - COM is an acronym for Component Object Model; it is an object orientated - layer (and associated services) on top of DCE RPC (an open standard) and - defines a common calling convention that enables code written in any - language to call and interoperate with code written in any other language - (provided those languages are COM aware). Not only can the code be - written in any language, but it need not even be part of the same - executable; the code can be loaded from a DLL, be found in another - process running on the same machine, or, with DCOM (Distributed COM), be - found in another process on a remote machine, all without your code even - needing to know where a component resides. - </para> - <para> - There is a subset of COM known as OLE Automation which comprises a set of - COM interfaces that allow loose binding to COM objects, so that they can - be introspected and called at run-time without compile-time knowledge of - how the object works. The PHP COM extension utilizes the OLE - Automation interfaces to allow you to create and call compatible objects - from your scripts. Technically speaking, this should really be called - the "OLE Automation Extension for PHP", since not all COM objects are OLE - compatible. - </para> - <para> - Now, why would or should you use COM? COM is one of the main ways to glue - applications and components together on the Windows platform; using COM - you can launch Microsoft Word, fill in a document template and save the - result as a Word document and send it to a visitor of your web site. You - can also use COM to perform administrative tasks for your network and to - configure your IIS; these are just the most common uses; you can do much - more with COM. - </para> - <para> - Starting with PHP 5, this extension (and this documentation) was - rewritten from scratch and much of the old confusing and bogus cruft has - be removed. Additionally, we support the instantiation and creation of - .Net assemblies using the COM interoperability layer provided by - Microsoft. - </para> - <para> - Please read <link xlink:href="&url.zend.comdotnet;">this article</link> - for an overview of the changes in this extension in PHP 5. - </para> - </section> - - <section xml:id="com.requirements"> - &reftitle.required; - <para> - COM functions are only available for the Windows version of PHP. - </para> - <para> - .Net support requires PHP 5 and the .Net runtime. - </para> - </section> - - <section xml:id="com.installation"> - &reftitle.install; - &no.install; - &windows.builtin; - <para> - You are responsible for installing support for the various COM objects - that you intend to use (such as MS Word); we don't and can't bundle all - of those with PHP. - </para> - </section> - - <section xml:id="com.foreach"> - <title>For Each</title> - - <para> - Starting with PHP 5, you may use PHP's own <link - linkend="control-structures.foreach">foreach</link> statement to iterate - over the contents of a standard COM/OLE IEnumVariant. In laymans terms, - this means that you can use foreach in places where you would have used - <literal>For Each</literal> in VB/ASP code. - </para> - - <para> - <example> - <title>For Each in ASP</title> - <programlisting role="asp"> -<![CDATA[ -<% -Set domainObject = GetObject("WinNT://Domain") -For Each obj in domainObject - Response.Write obj.Name & "<br />" -Next -%> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>while() ... Next() in PHP 4</title> - <programlisting role="php"> -<![CDATA[ -<?php -$domainObject = new COM("WinNT://Domain"); -while ($obj = $domainObject->Next()) { - echo $obj->Name . "<br />"; -} -?> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>foreach in PHP 5</title> - <programlisting role="php"> -<![CDATA[ -<?php -$domainObject = new COM("WinNT://Domain"); -foreach ($domainObject as $obj) { - echo $obj->Name . "<br />"; -} -?> -]]> - </programlisting> - </example> - </para> - </section> - - <section xml:id="com.arrays"> - <title>Arrays and Array-style COM properties</title> - - <para> - Many COM objects expose their properties as arrays, or using array-style - access. In PHP 4, you may use PHP array syntax to read/write such a - property, but only a single dimension is allowed. If you want to read a - multi-dimensional property, you could instead make the property access - into a function call, with each parameter representing each dimension of - the array access, but there is no way to write to such a property. - </para> - - <para> - PHP 5 introduces the following new features to make your life easier: - - <itemizedlist> - <listitem> - <para> - Access multi-dimensional arrays, or COM properties that require - multiple parameters using PHP array syntax. You can also write or set - properties using this technique. - </para> - </listitem> - - <listitem> - <para> - Iterate SafeArrays ("true" arrays) using the <xref - linkend="control-structures.foreach"/> control structure. This works - because SafeArrays include information about their size. If an - array-style property implements IEnumVariant then you can also use - foreach for that property too; take a look at <xref - linkend="com.foreach"/> for more information on this topic. - </para> - </listitem> - </itemizedlist> - </para> - - </section> - - <section xml:id="com.exceptions"> - <title>Exceptions (PHP 5)</title> - - <para> - This extension will throw instances of the class <literal>com_exception</literal> - whenever there is a potentially fatal error reported by COM. All - COM exceptions have a well-defined <literal>code</literal> property that - corresponds to the HRESULT return value from the various COM operations. - You may use this code to make programmatic decisions on how to handle the - exception. - </para> - - </section> - - &reference.com.ini; - - <section xml:id="com.resources"> - &reftitle.resources; - <para> - This extension defines a reference to a COM component returned by - deprecated <function>com_load</function> (this function does not exist in - PHP 5; use the <xref linkend="class.com"/> class instead). - </para> - </section> - - &reference.com.constants; + <title>COM and .Net (Windows)</title> - <section xml:id="com.seealso"> - &reftitle.seealso; - <para> - For further information on COM read the <link xlink:href="&url.comspecs;">COM - specification</link> or perhaps take a look at Don Box's - <link xlink:href="&url.yacl;">Yet Another COM Library (YACL)</link>. - You might find some additional useful information in our FAQ for <xref - linkend="faq.com"/>. - If you're thinking of using MS Office applications on the server side, - you should read the information here: <link - xlink:href="&url.msoffice.serverside;">Considerations for Server-Side Automation - of Office</link>. - </para> - </section> - - </partintro> + <section xml:id="com.seealso"> + &reftitle.seealso; + <para> + For further information on COM read the <link xlink:href="&url.comspecs;">COM + specification</link> or perhaps take a look at Don Box's + <link xlink:href="&url.yacl;">Yet Another COM Library (YACL)</link>. + You might find some additional useful information in our FAQ for <xref + linkend="faq.com"/>. + If you're thinking of using MS Office applications on the server side, + you should read the information here: <link + xlink:href="&url.msoffice.serverside;">Considerations for Server-Side Automation + of Office</link>. + </para> + </section> &reference.com.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/functions/class.com.xml?r1=1.11&r2=1.11.2.1&diff_format=u Index: phpdoc/en/reference/com/functions/class.com.xml diff -u phpdoc/en/reference/com/functions/class.com.xml:1.11 phpdoc/en/reference/com/functions/class.com.xml:1.11.2.1 --- phpdoc/en/reference/com/functions/class.com.xml:1.11 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/com/functions/class.com.xml Sat Dec 8 23:48:13 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.11.2.1 $ --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.12 --> <refentry xml:id="class.com" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -215,7 +215,7 @@ <function>com_isenum</function> returns &true;, in which case, they hide any methods with the same names that might otherwise be provided by the COM object. These methods have all been eliminated in PHP 5, and you - should use <xref linkend="com.foreach"/> instead. + should use <xref linkend="com.examples.foreach"/> instead. </para> <methodsynopsis> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/functions/com-isenum.xml?r1=1.7&r2=1.7.2.1&diff_format=u Index: phpdoc/en/reference/com/functions/com-isenum.xml diff -u phpdoc/en/reference/com/functions/com-isenum.xml:1.7 phpdoc/en/reference/com/functions/com-isenum.xml:1.7.2.1 --- phpdoc/en/reference/com/functions/com-isenum.xml:1.7 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/com/functions/com-isenum.xml Sat Dec 8 23:48:13 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.7.2.1 $ --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.27 --> <refentry xml:id='function.com-isenum' xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -22,7 +22,7 @@ <para> This function does not exist in PHP 5; use the more natural <link linkend="control-structures.foreach">foreach</link> statement to iterate - over the contents of COM objects. See <xref linkend="com.foreach"/> for + over the contents of COM objects. See <xref linkend="com.examples.foreach"/> for more details. </para> </note> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/dotnet/reference.xml diff -u phpdoc/en/reference/dotnet/reference.xml:1.8.2.1 phpdoc/en/reference/dotnet/reference.xml:1.8.2.2 --- phpdoc/en/reference/dotnet/reference.xml:1.8.2.1 Wed Oct 3 11:41:09 2007 +++ phpdoc/en/reference/dotnet/reference.xml Sat Dec 8 23:48:13 2007 @@ -1,21 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> +<!-- $Revision: 1.8.2.2 $ --> <!-- Purpose: utilspec.windows --> <!-- Membership: bundled --> <!-- State: experimental --> <reference xml:id="ref.dotnet" xmlns="http://docbook.org/ns/docbook"> <title>.NET Functions</title> - <titleabbrev>.NET</titleabbrev> - <partintro> - <section xml:id="dotnet.intro"> - &reftitle.intro; - &warn.experimental; - </section> - </partintro> - -&reference.dotnet.functions.entities; + &reference.dotnet.functions.entities; </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/url/reference.xml?r1=1.7.2.4&r2=1.7.2.5&diff_format=u Index: phpdoc/en/reference/url/reference.xml diff -u phpdoc/en/reference/url/reference.xml:1.7.2.4 phpdoc/en/reference/url/reference.xml:1.7.2.5 --- phpdoc/en/reference/url/reference.xml:1.7.2.4 Sun Dec 2 14:03:39 2007 +++ phpdoc/en/reference/url/reference.xml Sat Dec 8 23:48:14 2007 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7.2.4 $ --> +<!-- $Revision: 1.7.2.5 $ --> -<reference xml:id="ref.url" xmlns="http://docbook.org/ns/docbook"> +<reference xml:id="ref.url" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>URL &Functions;</title> &reference.url.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/book.xml +++ phpdoc/en/reference/com/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/error-handling.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/error-handling.xml +++ phpdoc/en/reference/com/error-handling.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/examples.xml +++ phpdoc/en/reference/com/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/com/setup.xml +++ phpdoc/en/reference/com/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dotnet/book.xml +++ phpdoc/en/reference/dotnet/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dotnet/constants.xml +++ phpdoc/en/reference/dotnet/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dotnet/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dotnet/setup.xml +++ phpdoc/en/reference/dotnet/setup.xml