mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348193 c90b9560-bf6c-de11-be94-00142212c4b1
114 lines
3.1 KiB
XML
114 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.dotnet" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<titleabbrev>DOTNET</titleabbrev>
|
|
<title>The DOTNET class</title>
|
|
<partintro>
|
|
|
|
<!-- {{{ DOTNET intro -->
|
|
<section xml:id="dotnet.intro">
|
|
&reftitle.intro;
|
|
<para>
|
|
The DOTNET class allows you to instantiate a class from a .Net assembly and
|
|
call its methods and access its properties, if the class and the methods and
|
|
properties are <link xlink:href="&url.com.visible;">visible to COM</link>.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
You need to install the .Net runtime on your web server to take advantage
|
|
of this feature.
|
|
</para>
|
|
</note>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<section xml:id="dotnet.synopsis">
|
|
&reftitle.classsynopsis;
|
|
|
|
<!-- {{{ Synopsis -->
|
|
<classsynopsis>
|
|
<ooclass><classname>DOTNET</classname></ooclass>
|
|
|
|
<!-- {{{ Class synopsis -->
|
|
<classsynopsisinfo>
|
|
<ooclass>
|
|
<classname>DOTNET</classname>
|
|
</ooclass>
|
|
|
|
<ooclass>
|
|
<modifier>extends</modifier>
|
|
<classname>VARIANT</classname>
|
|
</ooclass>
|
|
|
|
</classsynopsisinfo>
|
|
<!-- }}} -->
|
|
|
|
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.dotnet')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])">
|
|
<xi:fallback />
|
|
</xi:include>
|
|
</classsynopsis>
|
|
<!-- }}} -->
|
|
|
|
</section>
|
|
|
|
<section xml:id="class.dotnet.overloadedmethods">
|
|
<title>Overloaded Methods</title>
|
|
<para>
|
|
The returned object is an overloaded object, which means that PHP does
|
|
not see any fixed methods as it does with regular classes; instead, any
|
|
property or method accesses are passed through to COM and from there to
|
|
DOTNET. In other words, the .Net object is mapped through the COM
|
|
interoperability layer provided by the .Net runtime.
|
|
</para>
|
|
<para>
|
|
Once you have created a DOTNET object, PHP treats it identically to any
|
|
other COM object; all the same rules apply.
|
|
</para>
|
|
</section>
|
|
|
|
<section xml:id="class.dotnet.examples">
|
|
<title>DOTNET examples</title>
|
|
<para>
|
|
<example xml:id="example.dotnet">
|
|
<title>DOTNET example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$stack = new DOTNET("mscorlib", "System.Collections.Stack");
|
|
$stack->Push(".Net");
|
|
$stack->Push("Hello ");
|
|
echo $stack->Pop() . $stack->Pop();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</section>
|
|
|
|
</partintro>
|
|
|
|
&reference.com.entities.dotnet;
|
|
|
|
</phpdoc:classref>
|
|
|
|
<!-- 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
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/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
|
|
-->
|