derick Tue Jul 16 01:51:20 2002 EDT
Modified files:
/phpdoc/en/reference/classobj reference.xml
/phpdoc/en/reference/classobj/functions call-user-method.xml
Log:
- Only english text in the english tree please
Index: phpdoc/en/reference/classobj/reference.xml
diff -u phpdoc/en/reference/classobj/reference.xml:1.4
phpdoc/en/reference/classobj/reference.xml:1.5
--- phpdoc/en/reference/classobj/reference.xml:1.4 Mon Jul 15 23:28:18 2002
+++ phpdoc/en/reference/classobj/reference.xml Tue Jul 16 01:51:20 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<reference id="ref.classobj">
<title>Class/Object Functions</title>
<titleabbrev>Classes/Objects</titleabbrev>
@@ -8,20 +8,22 @@
<section id="classobj.intro">
&reftitle.intro;
<para>
- 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).
+ 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).
</para>
</section>
<section id="classobj.examples">
&reftitle.examples;
<para>
- 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.
+ 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.
</para>
<para>
<example>
@@ -76,10 +78,10 @@
</example>
</para>
<para>
- 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.
+ 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.
</para>
<para>
<example>
@@ -143,11 +145,11 @@
</example>
</para>
<para>
- 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�:
+ 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:
</para>
<para>
<informalexample>
Index: phpdoc/en/reference/classobj/functions/call-user-method.xml
diff -u phpdoc/en/reference/classobj/functions/call-user-method.xml:1.3
phpdoc/en/reference/classobj/functions/call-user-method.xml:1.4
--- phpdoc/en/reference/classobj/functions/call-user-method.xml:1.3 Mon Jul 15
23:35:25 2002
+++ phpdoc/en/reference/classobj/functions/call-user-method.xml Tue Jul 16 01:51:20
+2002
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 -->
<refentry id="function.call-user-method">
<refnamediv>
<refname>call_user_method</refname>
<refpurpose>
- Chamar um m�todo de usu�rio em um objeto espec�fico [desaprovado]
+ Call a user method on an specific object [deprecated]
</refpurpose>
</refnamediv>
<refsect1>
- <title>Descri��o</title>
+ <title>Description</title>
<methodsynopsis>
<type>mixed</type><methodname>call_user_method</methodname>
<methodparam><type>string</type><parameter>method_name</parameter></methodparam>
@@ -19,17 +19,17 @@
</methodsynopsis>
<warning>
<para>
- A fun��o<function>call_user_method</function> � desaprovada em rela��o
- ao PHP 4.1.0, use a <function>call_user_func</function>
- com a seguinte sintaxe <literal>array(&$obj, "method_name")</literal> .
+ The <function>call_user_method</function> function is deprecated
+ as of PHP 4.1.0, use the <function>call_user_func</function> variety
+ with the <literal>array(&$obj, "method_name")</literal> syntax instead.
</para>
</warning>
<para>
- Chama o m�todo referido pelo <parameter>method_name</parameter> do objeto
- <parameter>obj</parameter> definido pelo usu�rio. Um exemplo segue abaixo,
- onde n�s definiremos uma classe, instanciaremos um objeto e usaremos a fun��o
- <function>call_user_method</function> para chamar indiretamente
- <varname>print_info</varname> seu m�todo.
+ Calls the method referred by <parameter>method_name</parameter> from
+ the user defined <parameter>obj</parameter> object. An example of usage
+ is below, where we define a class, instantiate an object and use
+ <function>call_user_method</function> to call indirectly its
+ <varname>print_info</varname> method.
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -62,8 +62,8 @@
</informalexample>
</para>
<simpara>
- Veja tamb�m <function>call_user_func_array</function>,
- <function>call_user_func</function>, e
+ See also <function>call_user_func_array</function>,
+ <function>call_user_func</function>, and
<function>call_user_method_array</function>.
</simpara>
</refsect1>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php