Re: FTP quota taken from SQL database
Jan Schneider <[email protected]>
| Newsgroups | gmane.comp.horde.gollem |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Oliver Kuhl <[email protected]>: > Hi, > > our FTP quota/usage is stored in a MySQL database. If I'm right, I > need a special FTP-VFS driver, which supports SQL quotas. I would like > to implement a solution, which makes it back into the horde project, > so I like to discuss the way to solve the problem. > > Normally, I would simply extend the VFS_ftp driver to something like > VFS_ftp_sqlquota, but I'm not sure about this. It would be cleaner to > implement separate quota drivers which can be combined with other VFS > backends. But this means to change the whole quota implemenation in > gollem and maybe other applications. > > What is your opinion about this? How about implementing a composite pattern in Gollem, where you can configure one VFS driver to provide the actual FS backend, and a different driver to provide the quota? Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]