Class defining an AJAX API for supplying file information. More...
Public Member Functions | |
| downloadAllFiles ($args, &$request) | |
| downloadFile ($args, &$request) | |
| downloadLibraryFile ($args, &$request) | |
| enableLinkAction ($args, &$request) | |
| FileApiHandler () | |
| recordDownload ($args, &$request) | |
| viewFile ($args, &$request) | |
Class defining an AJAX API for supplying file information.
Definition at line 22 of file FileApiHandler.inc.php.
| FileApiHandler.downloadAllFiles | ( | $ | args, | |
| &$ | request | |||
| ) |
Download all passed files.
| $args | array | |
| $request | Request |
Definition at line 142 of file FileApiHandler.inc.php.
| FileApiHandler.downloadFile | ( | $ | args, | |
| &$ | request | |||
| ) |
Download a file.
| $args | array | |
| $request | Request |
Definition at line 73 of file FileApiHandler.inc.php.
| FileApiHandler.downloadLibraryFile | ( | $ | args, | |
| &$ | request | |||
| ) |
Download a library file.
| $args | array | |
| $request | Request |
Definition at line 87 of file FileApiHandler.inc.php.
| FileApiHandler.enableLinkAction | ( | $ | args, | |
| &$ | request | |||
| ) |
Returns a data changd event to re-enable the link action. Refactored out of recordDownload since library files do not have downloads recorded and are in a different context.
| $args | aray | |
| $request | Request |
Definition at line 208 of file FileApiHandler.inc.php.
Referenced by recordDownload().
| FileApiHandler.FileApiHandler | ( | ) |
Constructor.
Definition at line 27 of file FileApiHandler.inc.php.
| FileApiHandler.recordDownload | ( | $ | args, | |
| &$ | request | |||
| ) |
Record file download and return js event to update grid rows.
| $args | array | |
| $request | Request |
Definition at line 182 of file FileApiHandler.inc.php.
References enableLinkAction(), and MonographFileManager.recordView().
| FileApiHandler.viewFile | ( | $ | args, | |
| &$ | request | |||
| ) |
View a file.
| $args | array | |
| $request | Request |
Definition at line 128 of file FileApiHandler.inc.php.
1.7.1