LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Felipe Pena Date: Tue Aug 19 04:59:38 2008 Subject: cvs: phpdoc /en/reference/classobj/functions property-exists.xml
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();
?>
| Navigate in group php.doc.cvs at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |