First:
Own adapter must not be named Zend_.
Second:
Receive is not allowed to "download" files.
There is a strict seperation.
Third:
Doing upload and download in one step you need to use the transfer class.
That's why it was created.
Forth:
If you want to receive a fly simply look at your window :D :D :D
Fifth:
Look at the API, the proposal and the manual... all methods are described,
even if they are not implemented for now.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Paweł Chuchmała" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, October 07, 2008 4:07 PM
Subject: [fw-general] Custom file transfer adapter.
Hi.
I want to write file transfer adapter for MogileFS.
I have a little problem. Where I should put file downloading and
uploading?
In http adapter files are already uploaded on server, so _FILE is used in
constructor.
My Use Cases looks like this:
$mfs = new Zend_File_Transfer_Adapter_MogileFS($domain, $class,
$trackers);
$mfs->receive('file.pdf');
$mfs->receive(array('file1', 'file2', 'file3'));
So I think, that in ::receive I must download flie from remote systems and
then populate it to ::_files.
Am I right?
regards,
--
Paweł Chuchmała
pawel.chuchmala at gmail dot com