surfmax Mon Jul 15 23:28:18 2002 EDT Modified files: /phpdoc/en/reference/classobj reference.xml Log: Atualizado 'reference.xml' Index: phpdoc/en/reference/classobj/reference.xml diff -u phpdoc/en/reference/classobj/reference.xml:1.3 phpdoc/en/reference/classobj/reference.xml:1.4 --- phpdoc/en/reference/classobj/reference.xml:1.3 Fri Apr 19 10:27:44 2002 +++ phpdoc/en/reference/classobj/reference.xml Mon Jul 15 23:28:18 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <reference id="ref.classobj"> <title>Class/Object Functions</title> <titleabbrev>Classes/Objects</titleabbrev> @@ -8,22 +8,20 @@ <section id="classobj.intro"> &reftitle.intro; <para> - These functions allow you to obtain information about classes - and instance objects. You can obtain the name of the class to - which a object belongs, as well as its member properties and - methods. Using these functions, you can find out not only the - class membership of an object, but also its parentage (i.e. - what class is the object class extending). + Estas funções te permitem obter informações sobre classes e instâncias + de objetos. Você pode obter o nome da classe que um objeto pertence, + bem como suas propriedades e métodos. Usando estas funções, você pode + descobrir não apenas a classe de um objeto, mas também seu parentesco + (i.e. Qual classe o objeto se extende). </para> </section> <section id="classobj.examples"> &reftitle.examples; <para> - In this example, we first define a base class and an extension - of the class. The base class describes a general vegetable, - whether it is edible or not and what is its color. The subclass - <varname>Spinach</varname> adds a method to cook it and another to - find out if it is cooked. + Neste exemplo, nós primeiramente definiremos uma classe base + e uma extensão da classe. A classe base descreve um vegetal comum, + que é comestível ou não e que tem sua cor. A +sub-classe<varname>Espinafre</varname> + adiciona um método para cozinha-lo e outro para descobrir se ele está cozido. </para> <para> <example> @@ -78,10 +76,10 @@ </example> </para> <para> - We then instantiate 2 objects from these classes and print out - information about them, including their class parentage. - We also define some utility functions, mainly to have a nice printout - of the variables. + Nós instanciamos 2 objetos destas classes e exibimos informações sobre elas, + incluindo o parentesco de suas classes. + Nós também definimos algumas funções úteis, principalmente ter uma boa sáida de + variáveis. </para> <para> <example> @@ -145,11 +143,11 @@ </example> </para> <para> - One important thing to note in the example above is that - the object <varname>$leafy</varname> is an instance of the class - <classname>Spinach</classname> which is a subclass of - <classname>Vegetable</classname>, - therefore the last part of the script above will output: + Uma coisa importante para notar no exemplo acima é que o + objeto<varname>$leafy</varname> é uma instância da + classe<classname>Espinafre</classname> que é uma subclasse + de <classname>Vegetal</classname>, + então a última parte do script acima retornará: </para> <para> <informalexample>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php