cvs: phpdoc /de/functions com.xml

From: Date: Wed, 27 Feb 2002 19:09:08 +0000
Subject: cvs: phpdoc /de/functions com.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969342650@lists.php.net to get a copy of this message
tom Wed Feb 27 14:09:08 2002 EDT Modified files: /phpdoc/de/functions com.xml Log: file is actual now Index: phpdoc/de/functions/com.xml diff -u phpdoc/de/functions/com.xml:1.11 phpdoc/de/functions/com.xml:1.12 --- phpdoc/de/functions/com.xml:1.11 Sat Feb 2 10:33:58 2002 +++ phpdoc/de/functions/com.xml Wed Feb 27 14:09:08 2002 @@ -1,15 +1,35 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.21 Maintainer: tom Status: ready --> +<!-- EN-Revision: 1.31 Maintainer: tom Status: ready --> <reference id="ref.com"> <title>COM Support Funktionen für Windows</title> <titleabbrev>COM</titleabbrev> - - <partintro> - <simpara> - Die COM Funktionen sind nur in der Windows Version von PHP - verfügbar, und wurden mit PHP 4 eingeführt - </simpara> - </partintro> + <partintro> + <simpara> + Das Component Object Model (COM) ist eine Technologie, welche die + Wiederverwendung von Code erlaubt, egal in welcher Sprache dieser + geschrieben wurde. Die Komponenten stellen Schnittstellen bereit, + welche die verfügbaren Funktionen, aber nicht deren Implementierung + bekanntgeben (z.B. auf welcher Maschine die Komponente gespeichert + ist und die Executable, die sie enthält). Anwendungen können über + die COM-API beliebige Schnittstellen erzeugen. Man sich das wie einen + super Remote Procedure Call (RPC) Mechanismus mit einigen grundlegenden + Objekten vorstellen. Es trennt die Implementation von der Schnittstelle. + </simpara> + <simpara> + COM unterstützt Versioning, die Trennung von Implementation und + Schnittstelle, sowie das Verstecken von Implementierungsdetails, wie + z.B. Position der Executable und die Sprache, in welcher die Komponente + geschrieben wurde. + </simpara> + <simpara> + Die COM Funktionen sind nur in der Windowsversion von PHP verfügbar. + </simpara> + <simpara> + Weitere Informationen zu COM finden Sie in der + <ulink url="&url.comspecs;">COM specification</ulink>, oder in Don + Box's <ulink url="&url.yacl;"> Yet Another COM Library (YACL)</ulink>. + </simpara> + </partintro> <refentry id="class.com"> <refnamediv> @@ -49,7 +69,7 @@ <simpara> Name des DCOM Servers, von welchem die Komponente geholt werden soll. Ist &null; angegeben, wird <literal>localhost</literal> angenommen. - Um DCOM zuzulassen, muss <constant>com.allow_dcom</constant> + Um DCOM zuzulassen, muss <constant>com.allow_dcom</constant> in der <filename>php.ini</filename> auf &true; gesetzt sein. </simpara> @@ -73,6 +93,7 @@ <example id="example.com1"> <title>COM Beispiel (1)</title> <programlisting role="php"> +<![CDATA[ // Word starten $word = new COM("word.application") or die("Konnte Word nicht instantiieren"); print "Word geladen, Version {$word->Version}\n"; @@ -93,14 +114,16 @@ //Das Objekt freigeben $word->Release(); $word = null; +]]> </programlisting> </example> </para> <para> <example id="example.com2"> - <title>COM Beispiel (2)</title> + <title>COM example (2)</title> <programlisting role="php"> -$conn = new COM("ADODB.Connection") or die("Kann ADO nicht starten"); +<![CDATA[ +$conn = new COM("ADODB.Connection") or die("Cannot start ADO"); $conn->Open("Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=database; User ID=user; Password=password"); @@ -109,7 +132,7 @@ $num_columns = $rs->Fields->Count(); echo $num_columns . "\n"; -for ($i=0; $i &lt; $num_columns; $i++) +for ($i=0; $i < $num_columns; $i++) { $fld[$i] = $rs->Fields($i); } @@ -117,7 +140,7 @@ $rowcount = 0; while (!$rs->EOF) { - for ($i=0; $i &lt; $num_columns; $i++) + for ($i=0; $i < $num_columns; $i++) { echo $fld[$i]->value . "\t"; } @@ -134,6 +157,7 @@ $rs = null; $conn = null; +]]> </programlisting> </example> </para> @@ -229,10 +253,11 @@ <function>com_load</function> erstellt eine neue COM Komponente, und gibt eine Referenz darauf zurück. Im Fehlerfall wird &false; zurückgegeben. Mögliche Werte für - <parameter>codepage</parameter> sind <constant>CP_ACP</constant>, - <constant>CP_MACCP</constant>, <constant>CP_OEMCP</constant>, - <constant>CP_SYMBOL</constant>, <constant>CP_THREAD_ACP</constant>, - <constant>CP_UTF7</constant>, und <constant>CP_UTF8</constant>. + <parameter>codepage</parameter> sind + <constant>CP_ACP</constant>, <constant>CP_MACCP</constant>, + <constant>CP_OEMCP</constant>, <constant>CP_SYMBOL</constant>, + <constant>CP_THREAD_ACP</constant>, <constant>CP_UTF7</constant>, + und <constant>CP_UTF8</constant>. </para> </refsect1> </refentry> @@ -407,6 +432,42 @@ </para> </refsect1> </refentry> + + <refentry id='function.com-isenum'> + <refnamediv> + <refname>com_isenum</refname> + <refpurpose>Holt eine IEnumVariant</refpurpose> + </refnamediv> + <refsect1> + <title>Beschreibung</title> + <methodsynopsis> + <type>void</type><methodname>com_isenum</methodname> + <methodparam><type>object</type><parameter>com_module</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.com-load-typelib'> + <refnamediv> + <refname>com_load_typelib</refname> + <refpurpose>Lädt eine Typelib</refpurpose> + </refnamediv> + <refsect1> + <title>Beschreibung</title> + <methodsynopsis> + <type>void</type><methodname>com_load_typelib</methodname> + <methodparam><type>string</type><parameter>typelib_name</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>case_insensitive</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + </reference> <!-- Keep this comment at the end of the file @@ -429,4 +490,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> -

« previous php.doc (#969342650) next »