Author: kn Date: Mon Nov 26 20:06:11 2007 New Revision: 6817 Log: - Removed public (now unused) backend property from server # Removed accessing the property also from property tests
Modified: trunk/Webdav/src/server.php trunk/Webdav/tests/server_test.php Modified: trunk/Webdav/src/server.php ============================================================================== --- trunk/Webdav/src/server.php [iso-8859-1] (original) +++ trunk/Webdav/src/server.php [iso-8859-1] Mon Nov 26 20:06:11 2007 @@ -12,9 +12,6 @@ * * <code> * $server = ezcWebdavServer::getInstance(); - * - * // Server data using file backend with data in "path/" - * $server->backend = ; * * // Optionally register aditional transport handlers * @@ -39,9 +36,15 @@ * new customWebdavPathFactory() * ); * + * // Server data using file backend with data in "path/" + * $backend = new ezcWebdavBackendFile( '/path' ); + * * // Serve requests - * $server->handle( new ezcWebdavBackendFile( '/path' ) ); + * $server->handle( $backend ); * </code> + * + * @properties ezcWebdavServerConfigurationManager $configurations + * Webdav server configuration manager * * @version //autogentag// * @package Webdav @@ -117,7 +120,7 @@ : $uri ); // Perform final setup - $this->backend = $backend; + $this->properties['backend'] = $backend; if ( !isset( $_SERVER['HTTP_USER_AGENT'] ) ) { throw new ezcWebdavMissingHeaderException( 'User-Agent' ); @@ -242,11 +245,6 @@ } break; case 'backend': - if ( ( $propertyValue instanceof ezcWebdavBackend ) === false ) - { - throw new ezcBaseValueException( $propertyName, $propertyValue, 'ezcWebdavBackend' ); - } - break; case 'pluginRegistry': case 'pathFactory': case 'xmlTool': Modified: trunk/Webdav/tests/server_test.php ============================================================================== --- trunk/Webdav/tests/server_test.php [iso-8859-1] (original) +++ trunk/Webdav/tests/server_test.php [iso-8859-1] Mon Nov 26 20:06:11 2007 @@ -106,10 +106,9 @@ $setValues = array( 'configurations' => new ezcWebdavServerConfigurationManager(), - 'backend' => new ezcWebdavMemoryBackend(), ); $checkValues = array( - 'backend' => new ezcWebdavMemoryBackend(), + 'backend' => null, 'configurations' => new ezcWebdavServerConfigurationManager(), 'pluginRegistry' => new ezcWebdavPluginRegistry(), 'xmlTool' => null, @@ -154,7 +153,6 @@ $invalidValues = array( 'configurations' => $typicalFails, - 'backend' => $typicalFails, ); foreach ( $invalidValues as $propertyName => $propertyValues ) -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components