23
23
*/
24
24
class DownloadController extends AppController
25
25
{
26
+ /** @var array */
26
27
public $ _models = array ('Folder ' , 'Item ' , 'Community ' , 'User ' , 'Bitstream ' );
27
- public $ _daos = array ();
28
+
29
+ /** @var array */
28
30
public $ _components = array ('DownloadBitstream ' );
29
31
30
- /** index
32
+ /**
33
+ * Index action.
31
34
*
32
35
* @param folders = 12-13 (will download a zip of the folder 12 and 13, recursively)
33
36
* @param folders = 12, 1-13, 1 (will download a zip of the folder 12 and 13, recursively) // Need testing
@@ -37,6 +40,7 @@ class DownloadController extends AppController
37
40
* @param bitstream = 1 (will download related bitstream)
38
41
* @param offset The offset in bytes if downloading a bitstream (defaults to 0)
39
42
* @param name Alternate filename when downloading a bitstream (defaults to bitstream name)
43
+ * @throws Zend_Exception
40
44
*/
41
45
public function indexAction ()
42
46
{
@@ -223,6 +227,8 @@ public function indexAction()
223
227
224
228
/**
225
229
* Ajax action for determining what action to take based on the size of the requested download.
230
+ *
231
+ * @throws Zend_Exception
226
232
*/
227
233
public function checksizeAction ()
228
234
{
@@ -288,6 +294,7 @@ public function checksizeAction()
288
294
* download/item/<item_id>/...
289
295
* Any extra parameters are ignored and can be used to force clients like wget to download to the correct filename
290
296
* if the content-disposition header is ignored by the user agent.
297
+ * @throws Zend_Exception
291
298
*/
292
299
public function itemAction ()
293
300
{
@@ -304,6 +311,8 @@ public function itemAction()
304
311
* download/folder/<folder_id>/...
305
312
* Any extra parameters are ignored and can be used to force clients like wget to download to the correct filename
306
313
* if the content-disposition header is ignored by the user agent.
314
+ *
315
+ * @throws Zend_Exception
307
316
*/
308
317
public function folderAction ()
309
318
{
@@ -320,6 +329,8 @@ public function folderAction()
320
329
* download/bitstream/<bitstream_id>/...
321
330
* Any extra parameters are ignored and can be used to force clients like wget to download to the correct filename
322
331
* if the content-disposition header is ignored by the user agent.
332
+ *
333
+ * @throws Zend_Exception
323
334
*/
324
335
public function bitstreamAction ()
325
336
{
0 commit comments