Author: dr
Date: Fri Oct  5 23:33:32 2007
New Revision: 6379

Log:
- Fixed a typo.

Modified:
    docs/guidelines/implementation.txt

Modified: docs/guidelines/implementation.txt
==============================================================================
--- docs/guidelines/implementation.txt [iso-8859-1] (original)
+++ docs/guidelines/implementation.txt [iso-8859-1] Fri Oct  5 23:33:32 2007
@@ -662,6 +662,8 @@
      */
     private $properties = array();
 
+Properties also need an __isset() method implemented for them.
+
 
 Property Set Implementation
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -769,6 +771,36 @@
 
      * @throws ezcBasePropertyPermissionException if a write-only property is
      *         tried to be read.
+
+Property Isset Implementation
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The __isset() method is called with the $name parameter and the implementation 
of
+the method is as follows::
+
+    /**
+     * Returns true if the property $name is set, otherwise false.
+     *
+     * @param string $name     
+     * @return bool
+     * @ignore
+     */
+    public function __isset( $name )
+    {
+        switch ( $name )
+        {
+            case 'cols':
+            case 'colArray':
+            case 'timestamp':
+                return isset( $this->properties[$name] );
+
+            default:
+                return false;
+        }
+        // if there is no default case before:
+        return parent::__isset( $name );
+    }
+
 
 Documentation
 ~~~~~~~~~~~~~
@@ -920,7 +952,7 @@
          * @return bool
          * @ignore
          */
-        public function __isset( $key )
+        public function __isset( $name )
         {
             switch ( $name )
             {


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to