mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Atualizado 'functions/call-user-method.xml'
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88777 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
807536f5a4
commit
cbc5034122
1 changed files with 13 additions and 13 deletions
|
@ -1,15 +1,15 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- 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>
|
||||
Call a user method on an specific object [deprecated]
|
||||
Chamar um método de usuário em um objeto específico [desaprovado]
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<title>Descrição</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>
|
||||
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.
|
||||
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> .
|
||||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
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.
|
||||
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.
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -62,8 +62,8 @@ call_user_method ("print_info", $cntry, "\t");
|
|||
</informalexample>
|
||||
</para>
|
||||
<simpara>
|
||||
See also <function>call_user_func_array</function>,
|
||||
<function>call_user_func</function>, and
|
||||
Veja também <function>call_user_func_array</function>,
|
||||
<function>call_user_func</function>, e
|
||||
<function>call_user_method_array</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue