svn: /phpdoc/pt_BR/trunk/reference/classobj/functions/ class-alias.xml get-called-class.xml get-declared-traits.xml trait-exists.xml

[email protected] (André Luis Ferreira da Silva Bacci)
Newsgroups php.doc.pt-br
Message-ID <[email protected]>
ae                                       Mon, 15 Jul 2019 16:39:58 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=347754

Log:
Translations by @everaldofilho - https://github.com/phpdocbrbridge/traducao/pull/84

Changed paths:
    A   phpdoc/pt_BR/trunk/reference/classobj/functions/class-alias.xml
    A   phpdoc/pt_BR/trunk/reference/classobj/functions/get-called-class.xml
    A   phpdoc/pt_BR/trunk/reference/classobj/functions/get-declared-traits.xml
    U   phpdoc/pt_BR/trunk/reference/classobj/functions/trait-exists.xml
svn-diffs-347754.txt (text/x-diff, 8.8 KB)
Added: phpdoc/pt_BR/trunk/reference/classobj/functions/class-alias.xml
===================================================================
--- phpdoc/pt_BR/trunk/reference/classobj/functions/class-alias.xml	                        (rev 0)
+++ phpdoc/pt_BR/trunk/reference/classobj/functions/class-alias.xml	2019-07-15 16:39:58 UTC (rev 347754)
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 333179 Maintainer: none Status: ready --><!-- CREDITS: @everaldofilho -->
+<refentry xml:id="function.class-alias" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+  <refname>class_alias</refname>
+  <refpurpose>Cria um alias para uma classe</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>bool</type><methodname>class_alias</methodname>
+   <methodparam><type>string</type><parameter>original</parameter></methodparam>
+   <methodparam><type>string</type><parameter>alias</parameter></methodparam>
+   <methodparam choice="opt"><type>bool</type><parameter>autoload</parameter><initializer>&true;</initializer></methodparam>
+  </methodsynopsis>
+  <para>
+   Criando um alias nomeado <parameter>alias</parameter>
+   Com base na classe definida pelo usuário <parameter>original</parameter>.
+   A classe com alias é exatamente igual à classe original.
+  </para>
+ </refsect1>
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>original</parameter></term>
+     <listitem>
+      <para>
+       A classe original.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>alias</parameter></term>
+     <listitem>
+      <para>
+       O nome do alias da classe.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>autoload</parameter></term>
+     <listitem>
+      <para>
+       Se é para carregar automaticamente a classe caso a mesma ainda não foi carregada.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   &return.success;
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>class_alias</function> Exemplo</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+class foo { }
+
+class_alias('foo', 'bar');
+
+$a = new foo;
+$b = new bar;
+
+// os objetos são iguais
+var_dump($a == $b, $a === $b);
+var_dump($a instanceof $b);
+
+// as classes são iguais
+var_dump($a instanceof foo);
+var_dump($a instanceof bar);
+
+var_dump($b instanceof foo);
+var_dump($b instanceof bar);
+
+?>
+]]>
+    </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+bool(true)
+bool(false)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+]]>
+    </screen>
+   </example>
+  </para>
+ </refsect1>
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>get_parent_class</function></member>
+    <member><function>is_subclass_of</function></member>
+   </simplelist>
+  </para>
+ </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
+-->

Added: phpdoc/pt_BR/trunk/reference/classobj/functions/get-called-class.xml
===================================================================
--- phpdoc/pt_BR/trunk/reference/classobj/functions/get-called-class.xml	                        (rev 0)
+++ phpdoc/pt_BR/trunk/reference/classobj/functions/get-called-class.xml	2019-07-15 16:39:58 UTC (rev 347754)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 343887 Maintainer: none Status: ready --><!-- CREDITS: @everaldofilho -->
+<refentry xml:id="function.get-called-class" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+  <refname>get_called_class</refname>
+  <refpurpose>Retorna o nome da classe "Chamado pelo method estatico"</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>get_called_class</methodname>
+   <void/>
+  </methodsynopsis>
+  <para>
+   Obtém o nome da classe em que o método estático é chamado.
+  </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Retorna o nome da classe ou &false; se chamado de fora de uma classe.
+  </para>
+ </refsect1>
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title>Usando <function>get_called_class</function></title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+class foo {
+    static public function test() {
+        var_dump(get_called_class());
+    }
+}
+
+class bar extends foo {
+}
+
+foo::test();
+bar::test();
+
+?>
+]]>
+    </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+string(3) "foo"
+string(3) "bar"
+]]>
+    </screen>
+   </example>
+  </para>
+ </refsect1>
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>get_parent_class</function></member>
+    <member><function>get_class</function></member>
+    <member><function>is_subclass_of</function></member>
+   </simplelist>
+  </para>
+ </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
+-->

Added: phpdoc/pt_BR/trunk/reference/classobj/functions/get-declared-traits.xml
===================================================================
--- phpdoc/pt_BR/trunk/reference/classobj/functions/get-declared-traits.xml	                        (rev 0)
+++ phpdoc/pt_BR/trunk/reference/classobj/functions/get-declared-traits.xml	2019-07-15 16:39:58 UTC (rev 347754)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 343260 Maintainer: none Status: ready --><!-- CREDITS: @everaldofilho -->
+
+<refentry xml:id="function.get-declared-traits" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+  <refname>get_declared_traits</refname>
+  <refpurpose>Retorna um array de todas as Traits declaradas</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>get_declared_traits</methodname>
+   <void />
+  </methodsynopsis>
+  <para>
+
+  </para>
+
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Retorna um array com todos os nomes das traids declaradas em seus valores.
+   Retorna &null; em caso de falha.
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>class_uses</function></member>
+    <member><function>trait_exists</function></member>
+   </simplelist>
+  </para>
+ </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
+-->

Modified: phpdoc/pt_BR/trunk/reference/classobj/functions/trait-exists.xml
===================================================================
--- phpdoc/pt_BR/trunk/reference/classobj/functions/trait-exists.xml	2019-07-15 14:29:36 UTC (rev 347753)
+++ phpdoc/pt_BR/trunk/reference/classobj/functions/trait-exists.xml	2019-07-15 16:39:58 UTC (rev 347754)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 322871 Maintainer: none Status: ready --><!-- CREDITS: github:everaldofilho -->
+<!-- EN-Revision: 322871 Maintainer: none Status: ready --><!-- CREDITS: @everaldofilho -->

 <refentry xml:id="function.trait-exists" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.