18 define(
'FILE_GRID_ADD', 0x00000001);
19 define(
'FILE_GRID_DOWNLOAD_ALL', 0x00000002);
20 define(
'FILE_GRID_DELETE', 0x00000004);
21 define(
'FILE_GRID_VIEW_NOTES', 0x00000008);
22 define(
'FILE_GRID_MANAGE', 0x00000010);
23 define(
'FILE_GRID_EDIT', 0x00000020);
51 $this->
setCanAdd($capabilities & FILE_GRID_ADD);
56 $this->
setCanEdit($capabilities & FILE_GRID_EDIT);
76 $this->_canAdd = (boolean) $canAdd;
92 $this->_canViewNotes = $canViewNotes;
100 import(
'lib.pkp.classes.file.FileArchive');
109 $this->_canDownloadAll = $canDownloadAll;
125 $this->_canDelete = (boolean) $canDelete;
141 $this->_canManage = $canManage;
157 $this->_canEdit = $canEdit;
169 if (
sizeof($files) > 0) {
170 import(
'lib.pkp.controllers.grid.files.fileList.linkAction.DownloadAllLinkAction');