2323 */
2424class DownloadController extends AppController
2525{
26+ /** @var array */
2627 public $ _models = array ('Folder ' , 'Item ' , 'Community ' , 'User ' , 'Bitstream ' );
27- public $ _daos = array ();
28+
29+ /** @var array */
2830 public $ _components = array ('DownloadBitstream ' );
2931
30- /** index
32+ /**
33+ * Index action.
3134 *
3235 * @param folders = 12-13 (will download a zip of the folder 12 and 13, recursively)
3336 * @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
3740 * @param bitstream = 1 (will download related bitstream)
3841 * @param offset The offset in bytes if downloading a bitstream (defaults to 0)
3942 * @param name Alternate filename when downloading a bitstream (defaults to bitstream name)
43+ * @throws Zend_Exception
4044 */
4145 public function indexAction ()
4246 {
@@ -223,6 +227,8 @@ public function indexAction()
223227
224228 /**
225229 * Ajax action for determining what action to take based on the size of the requested download.
230+ *
231+ * @throws Zend_Exception
226232 */
227233 public function checksizeAction ()
228234 {
@@ -288,6 +294,7 @@ public function checksizeAction()
288294 * download/item/<item_id>/...
289295 * Any extra parameters are ignored and can be used to force clients like wget to download to the correct filename
290296 * if the content-disposition header is ignored by the user agent.
297+ * @throws Zend_Exception
291298 */
292299 public function itemAction ()
293300 {
@@ -304,6 +311,8 @@ public function itemAction()
304311 * download/folder/<folder_id>/...
305312 * Any extra parameters are ignored and can be used to force clients like wget to download to the correct filename
306313 * if the content-disposition header is ignored by the user agent.
314+ *
315+ * @throws Zend_Exception
307316 */
308317 public function folderAction ()
309318 {
@@ -320,6 +329,8 @@ public function folderAction()
320329 * download/bitstream/<bitstream_id>/...
321330 * Any extra parameters are ignored and can be used to force clients like wget to download to the correct filename
322331 * if the content-disposition header is ignored by the user agent.
332+ *
333+ * @throws Zend_Exception
323334 */
324335 public function bitstreamAction ()
325336 {
0 commit comments