Home  |  Linux  | Mysql  | PHP  | XML
From:Felipe Pena Date:Sun Aug 17 20:43:44 2008
Subject:cvs: phpdoc-pt_BR /language/oop5 constants.xml late-static-bindings.xml reflection.xml /language/types type-juggling.xml
felipe		Mon Aug 18 02:43:44 2008 UTC

  Modified files:              
    /phpdoc-pt_BR/language/oop5	constants.xml late-static-bindings.xml 
                               	reflection.xml 
    /phpdoc-pt_BR/language/types	type-juggling.xml 
  Log:
  - Update
  
  
http://cvs.php.net/viewvc.cgi/phpdoc-pt_BR/language/oop5/constants.xml?r1=1.10&r2=1.11&diff_format=u
Index: phpdoc-pt_BR/language/oop5/constants.xml
diff -u phpdoc-pt_BR/language/oop5/constants.xml:1.10 phpdoc-pt_BR/language/oop5/constants.xml:1.11
--- phpdoc-pt_BR/language/oop5/constants.xml:1.10	Sun Apr 27 17:58:23 2008
+++ phpdoc-pt_BR/language/oop5/constants.xml	Mon Aug 18 02:43:44 2008
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.16 Maintainer: felipe Status: ready --><!-- CREDITS: narigone -->
+<!-- EN-Revision: 1.17 Maintainer: felipe Status: ready --><!-- CREDITS: narigone -->
  <sect1 xml:id="language.oop5.constants" xmlns="http://docbook.org/ns/docbook">
   <title>Constantes do Objeto</title>
   <para>
@@ -11,7 +11,11 @@
    O valor deve ser uma expressão constante, não podendo ser (por exemplo) uma variável, um
    membro de uma classe, o resultado de uma operação matemática, ou uma chamada de função.
   </para>
-
+  <para>
+   É possível também interfaces terem <literal>constantes</literal>. Veja na
+   <link linkend="language.oop5.interfaces">documentação de interface</link> os
+   exemplos.
+  </para>
   <para>
    No PHP 5.3.0, é possível referenciar a classe usando uma variável.
    O valor da variável não pode ser uma palavra chave (e.g. <literal>self</literal>, 
http://cvs.php.net/viewvc.cgi/phpdoc-pt_BR/language/oop5/late-static-bindings.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc-pt_BR/language/oop5/late-static-bindings.xml
diff -u phpdoc-pt_BR/language/oop5/late-static-bindings.xml:1.1 phpdoc-pt_BR/language/oop5/late-static-bindings.xml:1.2
--- phpdoc-pt_BR/language/oop5/late-static-bindings.xml:1.1	Tue Dec  4 16:11:54 2007
+++ phpdoc-pt_BR/language/oop5/late-static-bindings.xml	Mon Aug 18 02:43:44 2008
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: felipe Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: felipe Status: ready -->
  <sect1 xml:id="language.oop5.late-static-bindings" xmlns="http://docbook.org/ns/docbook">
   <title>Late Static Bindings</title>
   <para>
@@ -154,10 +154,12 @@
    <note>
     <para>
      A resolução do Late static bindings termina em uma chamada estática
-     inteiramente resolvida sem volta.
+     inteiramente resolvida sem volta. Por outro lado, chamadas estáticas
+     usando palavras-chave como <literal>parent::</literal> ou 
+     <literal>self::</literal> encaminharão a informação.
     </para>
     <example>
-     <title>Chamadas estáticas inteiramentes resolvidas</title>
+     <title>Chamadas encaminhadas e não-encaminhadas</title>
      <programlisting role="php">
 <![CDATA[
 <?php
@@ -174,6 +176,8 @@
 class B extends A {
     public static function test() {
         A::foo();
+        parent::foo();
+        self::foo();
     }
 
     public static function who() {
@@ -181,7 +185,13 @@
     }
 }
 
-B::test();
+class C extends B {
+    public static function who() {
+        echo __CLASS__."\n";
+    }
+}
+
+C::test();
 ?>  
 ]]>
      </programlisting>
@@ -189,6 +199,8 @@
      <screen>
 <![CDATA[
 A
+C
+C
 ]]>
      </screen>
     </example>
http://cvs.php.net/viewvc.cgi/phpdoc-pt_BR/language/oop5/reflection.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc-pt_BR/language/oop5/reflection.xml
diff -u phpdoc-pt_BR/language/oop5/reflection.xml:1.13 phpdoc-pt_BR/language/oop5/reflection.xml:1.14
--- phpdoc-pt_BR/language/oop5/reflection.xml:1.13	Thu Jun 19 23:49:02 2008
+++ phpdoc-pt_BR/language/oop5/reflection.xml	Mon Aug 18 02:43:44 2008
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.35 Maintainer: felipe Status: ready --><!-- CREDITS: narigone -->
+<!-- EN-Revision: 1.36 Maintainer: felipe Status: ready --><!-- CREDITS: narigone -->
  <sect1 xml:id="language.oop5.reflection" xmlns="http://docbook.org/ns/docbook">
   <title>Reflexão</title>
   <sect2 xml:id="language.oop5.reflection.toc">
@@ -705,6 +705,7 @@
     public bool isProtected()
     public bool isStatic()
     public bool isDefault()
+    public void setAccessible() /* A partir do PHP 5.3.0 */
     public int getModifiers()
     public mixed getValue(stdclass object)
     public void setValue(stdclass object, mixed value)
@@ -718,6 +719,7 @@
    <note>
     <simpara>
      <function>getDocComment</function> foi adicionado no PHP 5.1.0.
+     <function>setAccessible</function> foi adicionado no PHP 5.3.0.
     </simpara>
    </note>
    <para>
http://cvs.php.net/viewvc.cgi/phpdoc-pt_BR/language/types/type-juggling.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-pt_BR/language/types/type-juggling.xml
diff -u phpdoc-pt_BR/language/types/type-juggling.xml:1.2 phpdoc-pt_BR/language/types/type-juggling.xml:1.3
--- phpdoc-pt_BR/language/types/type-juggling.xml:1.2	Sun Apr 27 17:58:23 2008
+++ phpdoc-pt_BR/language/types/type-juggling.xml	Mon Aug 18 02:43:44 2008
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.4 Maintainer: felipe Status: ready -->
+<!-- EN-Revision: 1.5 Maintainer: felipe Status: ready -->
 <sect1 xml:id="language.types.type-juggling">
  <title>Manipulação de tipos</title>
 
@@ -83,8 +83,8 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-$a    = 'car'; // $a is a string
-$a[0] = 'b';   // $a is still a string
+$a    = 'car'; // $a é uma string
+$a[0] = 'b';   // $a é ainda uma string
 echo $a;       // bar
 ?>
 ]]>
@@ -139,9 +139,12 @@
    <listitem>
     <simpara>(object) - converte para objeto</simpara>
    </listitem>
+   <listitem>
+    <simpara>(unset) - converte para <type>NULL</type> (PHP 5)</simpara>
+   </listitem>
   </itemizedlist>
   <para>
-   (binary) e o prefixo b é foram adicionado no PHP 5.2.1
+   (binary) e o prefixo b é foram adicionados no PHP 5.2.1
   </para>
   <para>
    Note que tabulações e espaços são permitidos dentro dos parênteses, então
@@ -221,8 +224,14 @@
      objeto</link></simpara>
    </listitem>
    <listitem>
-    <simpara><link linkend="language.types.resource.casting">Converting to
-     resource</link></simpara>
+    <simpara><link linkend="language.types.resource.casting">Convertendo para
+     resource</link>
+    </simpara>
+   </listitem>
+   <listitem>
+    <simpara>
+     <link linkend="language.types.null.casting">Convertendo para NULL</link>
+    </simpara>
    </listitem>
    <listitem>
     <simpara>


Navigate in group php.doc.pt-br at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants