cvs: phpdoc /en/reference/classobj/functions property-exists.xml

From: Date: Tue, 19 Aug 2008 10:59:38 +0000
Subject: cvs: phpdoc /en/reference/classobj/functions property-exists.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2051@lists.php.net to get a copy of this message
felipe Tue Aug 19 10:59:38 2008 UTC Modified files: /phpdoc/en/reference/classobj/functions property-exists.xml Log: - Added information about the changed behavior http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/classobj/functions/property-exists.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/classobj/functions/property-exists.xml diff -u phpdoc/en/reference/classobj/functions/property-exists.xml:1.7 phpdoc/en/reference/classobj/functions/property-exists.xml:1.8 --- phpdoc/en/reference/classobj/functions/property-exists.xml:1.7 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/classobj/functions/property-exists.xml Tue Aug 19 10:59:38 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <refentry xml:id="function.property-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>property_exists</refname> @@ -16,7 +16,7 @@ </methodsynopsis> <para> This function checks if the given <parameter>property</parameter> exists in - the specified class (and if it is accessible from the current scope). + the specified class. </para> <note> <para> @@ -56,6 +56,30 @@ &null; in case of an error. </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function checks the existence of a property independent of + accessibility. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> @@ -70,13 +94,14 @@ private $xpto; static function test() { - var_dump(property_exists('myClass', 'xpto')); // true, it can be accessed from here + var_dump(property_exists('myClass', 'xpto')); //true } } var_dump(property_exists('myClass', 'mine')); //true var_dump(property_exists(new myClass, 'mine')); //true -var_dump(property_exists('myClass', 'xpto')); //false, isn't public +var_dump(property_exists('myClass', 'xpto')); //true +var_dump(property_exists('myClass', 'bar')); //false myClass::test(); ?>

« previous php.doc.cvs (#2051) next »