<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionclass.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'reflectionclass.export.php',
    1 => 'ReflectionClass::export',
    2 => 'Exporta una clase',
  ),
  'up' => 
  array (
    0 => 'class.reflectionclass.php',
    1 => 'ReflectionClass',
  ),
  'prev' => 
  array (
    0 => 'reflectionclass.construct.php',
    1 => 'ReflectionClass::__construct',
  ),
  'next' => 
  array (
    0 => 'reflectionclass.getattributes.php',
    1 => 'ReflectionClass::getAttributes',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/reflection/reflectionclass/export.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionclass.export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClass::export</h1>
  <p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">ReflectionClass::export</span> &mdash; <span class="dc-title">Exporta una clase</span></p>

 </div>

 <div id="reflectionclass.export-refsynopsisdiv">
  <div class="warning"><strong class="warning">Advertencia</strong><p class="simpara">Esta función está
<em>OBSOLETA</em> a partir de PHP 7.4.0, y ha sido <em>ELIMINADA</em> a partir de PHP 8.0.0. Depender de esta función
está altamente desaconsejado.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-reflectionclass.export-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>ReflectionClass::export</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$argumento</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$return</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.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Exporta una clase reflejada.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.export-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">argumento</code></dt>
     <dd>
      <p class="para">
       La reflexión a exportar.
      </p>
     </dd>
    
    
     <dt><code class="parameter">return</code></dt>
     <dd>
      <p class="para">
       Definirlo a <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> retornará
        la exportación en lugar de emitirla. Definirlo a <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> (por omisión) hará lo contrario.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclass.export-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Si el parámetro <code class="parameter">return</code>
        está definido a <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, la exportación será retornada en forma de <span class="type"><a href="language.types.string.php" class="type string">string</a></span>,
        de lo contrario, <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> será retornado.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionclass.export-examples">
  <h3 class="title">Ejemplos</h3>
   <p class="para">
    <div class="example" id="example-1">
     <p><strong>Ejemplo #1 Uso básico de <span class="methodname"><strong>ReflectionClass::export()</strong></span></strong></p>
     <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">Apple </span><span style="color: #007700">{<br />    public </span><span style="color: #0000BB">$var1</span><span style="color: #007700">;<br />    public </span><span style="color: #0000BB">$var2 </span><span style="color: #007700">= </span><span style="color: #DD0000">'Orange'</span><span style="color: #007700">;<br /><br />    public function </span><span style="color: #0000BB">type</span><span style="color: #007700">() {<br />        return </span><span style="color: #DD0000">'Apple'</span><span style="color: #007700">;<br />    }<br />}<br /></span><span style="color: #0000BB">ReflectionClass</span><span style="color: #007700">::</span><span style="color: #0000BB">export</span><span style="color: #007700">(</span><span style="color: #DD0000">'Apple'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Resultado del ejemplo anterior es similar a:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Class [ &lt;user&gt; class Apple ] {
  @@ php shell code 1-8

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [2] {
    Property [ &lt;default&gt; public $var1 ]
    Property [ &lt;default&gt; public $var2 ]
  }

  - Methods [1] {
    Method [ &lt;user&gt; public method type ] {
      @@ php shell code 5 - 7
    }
  }
}</pre>
</div>
    </div>
   </div>
   </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.export-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionclass.getname.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::getName()</a> - Obtiene el nombre de la clase</span></li>
    <li><span class="methodname"><a href="reflectionclass.tostring.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::__toString()</a> - Crea una representaci&oacute;n textual del objeto</span></li>
   </ul>
  </p>
 </div>


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