Author: kn
Date: Thu Sep 20 16:10:59 2007
New Revision: 6226

Log:
- Moved __toString() method to right class

Modified:
    trunk/Webdav/src/interfaces/response.php
    trunk/Webdav/src/response/error.php

Modified: trunk/Webdav/src/interfaces/response.php
==============================================================================
--- trunk/Webdav/src/interfaces/response.php [iso-8859-1] (original)
+++ trunk/Webdav/src/interfaces/response.php [iso-8859-1] Thu Sep 20 16:10:59 
2007
@@ -23,7 +23,6 @@
  */
 abstract class ezcWebdavResponse
 {
-
     /**
      * Response status codes
      */
@@ -289,6 +288,16 @@
     {
         return array_key_exists( $propertyName, $this->properties );
     }
+
+    /**
+     * Return valid HTTP response string from error code.
+     * 
+     * @return string
+     */
+    public function __toString()
+    {
+        return 'HTTP/1.1 ' . $this->status . ' ' . 
self::$errorNames[$this->status];
+    }
 }
 
 ?>

Modified: trunk/Webdav/src/response/error.php
==============================================================================
--- trunk/Webdav/src/response/error.php [iso-8859-1] (original)
+++ trunk/Webdav/src/response/error.php [iso-8859-1] Thu Sep 20 16:10:59 2007
@@ -70,16 +70,6 @@
                 parent::__set( $propertyName, $propertyValue );
         }
     }
-
-    /**
-     * Return valid HTTP response string from error code.
-     * 
-     * @return string
-     */
-    public function __toString()
-    {
-        return 'HTTP/1.1 ' . $this->status . ' ' . 
self::$errorNames[$this->status];
-    }
 }
 
 ?>


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

Reply via email to