Re: Virtual Filesystem
| From: | Wolfram Kriesing | Date: | Thu, 26 Sep 2002 20:06:44 +0000 |
| Subject: | Re: Virtual Filesystem | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9567@lists.php.net to get a copy of this message | ||
Chuck Hagenbuch wrote:
Quoting Alan Knowles <alan@akbkhome.com>:now i come again with this ... i saw that the VFS also works on sql, i was just having a short look, but do you think it makes sense basing some of the stuff on the tree-class? since i saw that the VFS saves something like folders and a tree structure i thought that the tree-clas might be useful there? or is it not useful here at all? btw the PEAR::Tree class also works on Arrays, Filesystem, XML-Files, and more(? i gotta have a look) -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth- The API may face conflicts.. - eg. we cant impliment a method createFolder on the new API, because it is used in the old API. (although I dont thing there is a big problem with the API I mentioned, except for the factory method.)There are two options here. One is to have methods like createFolder() be smart enough to call different internal functions based on their arguments (ie, if I get passed an object, do this, otherwise, do that). The other is to just suck it up and have slightly different function names - createFolderObject(), etc.