<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.com.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.com-print-typeinfo.php',
    1 => 'com_print_typeinfo',
    2 => 'Print out a PHP class definition for a dispatchable interface',
  ),
  'up' => 
  array (
    0 => 'ref.com.php',
    1 => 'COM Functions',
  ),
  'prev' => 
  array (
    0 => 'function.com-message-pump.php',
    1 => 'com_message_pump',
  ),
  'next' => 
  array (
    0 => 'function.variant-abs.php',
    1 => 'variant_abs',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/functions/com-print-typeinfo.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.com-print-typeinfo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">com_print_typeinfo</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">com_print_typeinfo</span> &mdash; <span class="dc-title">Print out a PHP class definition for a dispatchable interface</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.com-print-typeinfo-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>com_print_typeinfo</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.variant.php" class="type variant">variant</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$variant</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$dispatch_interface</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$display_sink</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   The purpose of this function is to help generate a skeleton class for use
   as an event sink.  You may also use it to generate a dump of any COM
   object, provided that it supports enough of the introspection interfaces,
   and that you know the name of the interface you want to display.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.com-print-typeinfo-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">variant</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">variant</code> should be either an instance of a COM
       object, or be the name of a typelibrary (which will be resolved according
       to the rules set out in <span class="function"><a href="function.com-load-typelib.php" class="function">com_load_typelib()</a></span>).
      </p>
     </dd>
    
    
     <dt><code class="parameter">dispatch_interface</code></dt>
     <dd>
      <p class="para">
       The name of an <code class="literal">IDispatch</code> descendant interface that you want to display.
      </p>
     </dd>
    
    
     <dt><code class="parameter">display_sink</code></dt>
     <dd>
      <p class="para">
       If set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, the corresponding sink interface will be displayed
       instead.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.com-print-typeinfo-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.com-print-typeinfo-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.com-event-sink.php" class="function" rel="rdfs-seeAlso">com_event_sink()</a> - Connect events from a COM object to a PHP object</span></li>
    <li><span class="function"><a href="function.com-load-typelib.php" class="function" rel="rdfs-seeAlso">com_load_typelib()</a> - Loads a Typelib</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>