Files
2025-05-08 14:45:48 -03:00

84 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: c477749c82111cbbdd657a0e98eeaeeec0d90c91 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
<refentry xml:id="reflectionconstant.getextension" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionConstant::getExtension</refname>
<refpurpose>Obtém <classname>ReflectionExtension</classname> da extensão de definição</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionConstant">
<modifier>public</modifier> <type class="union"><type>ReflectionExtension</type><type>null</type></type><methodname>ReflectionConstant::getExtension</methodname>
<void/>
</methodsynopsis>
<simpara>
Obtém um objeto <classname>ReflectionExtension</classname> para a extensão
que definiu a constante.
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Um objeto <classname>ReflectionExtension</classname> que representa a
extensão que definiu a constante, ou &null; para constantes definidas pelo usuário.
</simpara>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Uso básico de <methodname>ReflectionConstant::getExtension</methodname></title>
<programlisting role="php">
<![CDATA[
<?php
var_dump((new ReflectionConstant('SQLITE3_TEXT'))->getExtension());
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
object(ReflectionExtension)#2 (1) {
["name"]=>
string(7) "sqlite3"
}
]]>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>ReflectionConstant::getExtensionName</methodname></member>
</simplelist>
</refsect1>
</refentry>
<!-- 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
-->