[gollem] FTP quota taken from SQL database
Jan Schneider
jan at horde.org
Sat Jun 17 05:47:48 PDT 2006
Zitat von Oliver Kuhl <okuhl at netcologne.de>:
> 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/
More information about the gollem
mailing list