cvs: phpdoc-pl /reference/classobj/functions get-class-methods.xml

From: Date: Tue, 18 Apr 2006 08:16:07 +0000
Subject: cvs: phpdoc-pl /reference/classobj/functions get-class-methods.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-892@lists.php.net to get a copy of this message
leszek Tue Apr 18 08:16:07 2006 UTC Modified files: /phpdoc-pl/reference/classobj/functions get-class-methods.xml Log: [leszek] - updated to EN 1.12 http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/classobj/functions/get-class-methods.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-pl/reference/classobj/functions/get-class-methods.xml diff -u phpdoc-pl/reference/classobj/functions/get-class-methods.xml:1.6 phpdoc-pl/reference/classobj/functions/get-class-methods.xml:1.7 --- phpdoc-pl/reference/classobj/functions/get-class-methods.xml:1.6 Sun Mar 13 01:03:06 2005 +++ phpdoc-pl/reference/classobj/functions/get-class-methods.xml Tue Apr 18 08:16:07 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.9 Maintainer: dombal Status: Ready --> -<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: dombal Status: Ready --> +<!-- $Revision: 1.7 $ --> <refentry id="function.get-class-methods"> <refnamediv> <refname>get_class_methods</refname> @@ -14,7 +14,8 @@ </methodsynopsis> <para> Funkcja ta zwraca tablicê nazw metod zdefiniowanych dla klasy okre¶lonej - przez parametr <parameter>nazwa_klasy</parameter>. + przez parametr <parameter>nazwa_klasy</parameter>. W przypadku b³êdy + zwracana jest warto¶c &null;. </para> <note> <para> @@ -23,7 +24,9 @@ <informalexample> <programlisting> <![CDATA[ -$metody_klasy = get_class_methods($moja_klasa); // zobacz ni¿ej pe³ny przyk³ad +<?php +$metody_klasy = get_class_methods($moj_obiekt); // zobacz poni¿szy pe³ny przyk³ad +?> ]]> </programlisting> </informalexample> @@ -53,9 +56,9 @@ } } -$moj_obiekt = new mojaklasa(); - -$metody_klasy = get_class_methods(get_class($moj_obiekt)); +$metody_klasy = get_class_methods('mojaklasa'); +// lub +$metody_klasy = get_class_methods(new mojaklasa()); foreach ($metody_klasy as $nazwa_metody) { echo "$nazwa_metody\n"; @@ -74,14 +77,16 @@ </screen> </example> </para> - <warning> - <para> - Od PHP 5, funkcja zwraca nazwy metod tak jak zosta³y zadeklarowane - (z uwzglêdnieniem wielko¶ci liter). W PHP 4 by³y one zmieniane na ma³e litery. - </para> - </warning> + <warning> + <para> + Od PHP 5, funkcja zwraca nazwy metod tak jak zosta³y zadeklarowane + (z uwzglêdnieniem wielko¶ci liter). W PHP 4 by³y one zmieniane na ma³e litery. + </para> + </warning> <simpara> - Patrz tak¿e: <function>get_class_vars</function>, + Patrz tak¿e: + <function>get_class</function>, + <function>get_class_vars</function>, <function>get_object_vars</function>. </simpara> </refsect1>

« previous php.doc.pl (#892) next »