Author: ts
Date: Thu Sep 27 23:38:13 2007
New Revision: 6311
Log:
- Refactoring: Moved around files.
# Attention: Autoload broken.
Added:
trunk/Webdav/src/interfaces/path_factory.php (with props)
trunk/Webdav/src/path_factories/
trunk/Webdav/src/path_factories/automatic.php
- copied unchanged from r6310, trunk/Webdav/src/path_factory/automatic.php
trunk/Webdav/src/path_factories/basic.php
- copied unchanged from r6310, trunk/Webdav/src/path_factory.php
trunk/Webdav/src/property_storages/
trunk/Webdav/src/property_storages/basic.php
- copied unchanged from r6310, trunk/Webdav/src/property_storage.php
trunk/Webdav/src/property_storages/flagged.php
- copied unchanged from r6310,
trunk/Webdav/src/property_storage_flagged.php
Removed:
trunk/Webdav/src/path_factory.php
trunk/Webdav/src/path_factory/automatic.php
trunk/Webdav/src/property_storage.php
trunk/Webdav/src/property_storage_flagged.php
Added: trunk/Webdav/src/interfaces/path_factory.php
==============================================================================
--- trunk/Webdav/src/interfaces/path_factory.php (added)
+++ trunk/Webdav/src/interfaces/path_factory.php [iso-8859-1] Thu Sep 27
23:38:13 2007
@@ -1,0 +1,53 @@
+<?php
+/**
+ * File containing the ezcWebdavPathFactory interface.
+ *
+ * @package Webdav
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Basic path factory interface.
+ *
+ * An object that implements this interface is meant to be used in [EMAIL
PROTECTED]
+ * ezcWebdavTransportOptions} as the $pathFactory property. The instance of
+ * [EMAIL PROTECTED] ezcWebdavTransport} utilizes the path factory to
translate between
+ * external pathes/URIs and internal path representations.
+ *
+ * You may want to provide custome implementations for different mappings.
+ *
+ * @see ezcWebdavBasicPathFactory
+ * @see ezcWebdavAutomaticPathFactory
+ *
+ * @version //autogentag//
+ * @package Webdav
+ */
+interface ezcWebdavPathFactory
+{
+ /**
+ * Parses the given URI to a locally understandable path.
+ *
+ * This method retrieves a URI (either full qualified or relative) and
+ * translates it into a local path, which can be understood by the WebDAV
+ * elements.
+ *
+ * @param string $uri
+ * @return string
+ */
+ public function parseUriToPath( $uri );
+
+ /**
+ * Generates a URI from a local path.
+ *
+ * This method receives a local $path string, representing a node in the
+ * local WebDAV store and translates it into a full qualified URI to be
+ * used as external reference.
+ *
+ * @param string $path
+ * @return string
+ */
+ public function generateUriFromPath( $path );
+}
+
+?>
Propchange: trunk/Webdav/src/interfaces/path_factory.php
------------------------------------------------------------------------------
svn:eol-style = native
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components