cvs: phpdoc-de /reference/classobj/functions call-user-method.xml class-exists.xml method-exists.xml

From: Date: Sat, 01 Mar 2008 21:42:57 +0000
Subject: cvs: phpdoc-de /reference/classobj/functions call-user-method.xml class-exists.xml method-exists.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-2407@lists.php.net to get a copy of this message
hholzgra Sat Mar 1 21:42:57 2008 UTC Modified files: /phpdoc-de/reference/classobj/functions call-user-method.xml class-exists.xml method-exists.xml Log: translation updates http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/classobj/functions/call-user-method.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-de/reference/classobj/functions/call-user-method.xml diff -u phpdoc-de/reference/classobj/functions/call-user-method.xml:1.6 phpdoc-de/reference/classobj/functions/call-user-method.xml:1.7 --- phpdoc-de/reference/classobj/functions/call-user-method.xml:1.6 Sat Jun 23 13:21:30 2007 +++ phpdoc-de/reference/classobj/functions/call-user-method.xml Sat Mar 1 21:42:57 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.13 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.14 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.call-user-method" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>call_user_method</refname> @@ -17,14 +17,26 @@ </methodsynopsis> <warning> <para> - Die Funktion <function>call_user_method</function> ist veraltet, - bitte benutzen Sie die seit PHP 4.1.0 zur Verfügung stehende - Variante der <function>call_user_func</function> bei der - Objekt und Methode als <literal>array(&amp;$obj, "method_name")</literal> - übergeben werden. + Die Funktion <function>call_user_method</function> seit PHP 4.1.0 veraltet. </para> </warning> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>call_user_function</function> Alternative</title> + <programlisting role="php"> +<![CDATA[ +<?php +call_user_func($array($obj, $method_name), $parameter /* , ...*/); +call_user_func($array(&$obj, $method_name), $parameter /* , ...*/); // PHP4 +?> +]]> + </programlisting> + </example> + </para> + </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/classobj/functions/class-exists.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-de/reference/classobj/functions/class-exists.xml diff -u phpdoc-de/reference/classobj/functions/class-exists.xml:1.7 phpdoc-de/reference/classobj/functions/class-exists.xml:1.8 --- phpdoc-de/reference/classobj/functions/class-exists.xml:1.7 Sat Jun 23 13:21:30 2007 +++ phpdoc-de/reference/classobj/functions/class-exists.xml Sat Mar 1 21:42:57 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.10 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.11 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.class-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>class_exists</refname> @@ -25,7 +25,8 @@ <term><parameter>class_name</parameter></term> <listitem> <para> - Der Klassenname + Der Klassenname. Groß- und Kleinschreibung wird bein Vergleich + nicht beachtet. </para> </listitem> </varlistentry> @@ -33,7 +34,7 @@ <term><parameter>autoload</parameter></term> <listitem> <para> - Gibt an ob &link.autoload; genutzt werden soll + Gibt an ob &link.autoload; genutzt werden soll. Vorgabewert ist &true;. </para> </listitem> </varlistentry> @@ -60,6 +61,12 @@ </thead> <tbody> <row> + <entry>5.0.2</entry> + <entry>i + Die Funktion liefert nun nicht mehr &true; für Interfaces. + Nutzen Sie hierfür <function>interface_exists</function>. + </row> + <row> <entry>5.0.0</entry> <entry> Der <parameter>autoload</parameter> Parameter wurde hinzugefügt. @@ -116,6 +123,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>function_exists</function></member> <member><function>interface_exists</function></member> <member><function>get_declared_classes</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/classobj/functions/method-exists.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-de/reference/classobj/functions/method-exists.xml diff -u phpdoc-de/reference/classobj/functions/method-exists.xml:1.6 phpdoc-de/reference/classobj/functions/method-exists.xml:1.7 --- phpdoc-de/reference/classobj/functions/method-exists.xml:1.6 Sat Jun 23 13:21:30 2007 +++ phpdoc-de/reference/classobj/functions/method-exists.xml Sat Mar 1 21:42:57 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.8 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.9 Maintainer: hholzgra Status: ready --> <refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>method_exists</refname> @@ -68,6 +68,23 @@ ]]> </screen> </example> + <example> + <title>Statisches <function>method_exists</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php +$directory = new Directory('.'); +var_dump(method_exists('Directory','read')); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +bool(true) +]]> + </screen> + </example> </para> </refsect1> <refsect1 role="seealso">

« previous php.doc.de (#2407) next »