Closed (fixed)
Project:
Examples for Developers
Component:
File Example
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2010 at 05:15 UTC
Updated:
29 Aug 2010 at 22:30 UTC
Jump to comment: Most recent file
We've needed a file example for some time.
So far this one demonstrates the key D7 APIs.
Next step is to demonstrate a custom streamwrapper.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | examples.file_example_874364_05.patch | 44.65 KB | rfay |
| #2 | examples.file_example_874364_02.patch | 30.76 KB | rfay |
| examples.file_example_initial.patch | 7.72 KB | rfay |
Comments
Comment #1
rfayWould appreciate review by anyone and everyone.
Comment #2
rfayThis patch extends the above example by adding support for a session:// scheme, where "files" are written to a subkey of the $_SESSION variable. It provides a nearly complete read/write stream wrapper example.
Comment #3
gddsubscribe, will try and review later
Comment #4
dman commentedThanks for this. I don't understand it all yet, but it's good to know that docs are there.
Comment #5
rfayOK, now with significant tests and a pretty exhaustive streams demo implementation.
Comment #6
rfayCommitted to CVS HEAD
http://drupal.org/cvs?commit=405304
Review is still welcomed!
Comment #7
rfayFor some reason, despite the fact that the commit shows, this isn't in the release package, and it's also not being tested.
Comment #8
rfay#5: examples.file_example_874364_05.patch queued for re-testing.
Comment #10
rfayTests are running and passing now.
Comment #11
bicherele commented#5: examples.file_example_874364_05.patch queued for re-testing.
Comment #12
rfay@bicherele, this has already been committed. See #6. Your review is still appreciated though.