00001 <?php 00015 import('controllers.grid.files.fileList.FileListGridHandler'); 00016 00017 import('classes.controllers.grid.files.fileList.SelectableFileListGridHandlerImplementation'); 00018 00019 class SelectableFileListGridHandler extends FileListGridHandler { 00020 00028 function SelectableFileListGridHandler($dataProvider, $stageId, $capabilities = 0) { 00029 parent::FileListGridHandler($dataProvider, $stageId, $capabilities, 'SelectableFileListGridHandlerImplementation'); 00030 } 00031 00032 00033 // 00034 // Overridden methods from GridHandler 00035 // 00039 function getRequestArgs() { 00040 $requestArgs = parent::getRequestArgs(); 00041 $handlerImplementation =& $this->getHandlerImplementation(); 00042 00043 return $handlerImplementation->getRequestArgs($requestArgs); 00044 } 00045 00049 function &loadData($request, $filter) { 00050 $submissionFiles =& parent::loadData($request, $filter); 00051 00052 $handlerImplementation =& $this->getHandlerImplementation(); 00053 return $handlerImplementation->loadData($submissionFiles); 00054 } 00055 00056 00057 // 00058 // Protected methods 00059 // 00068 function getSelectionPolicy(&$request, $args, $roleAssignments) { 00069 // By default we do not require an additional policy. 00070 return null; 00071 } 00072 00079 function getSelectionArgs() { 00080 // By default we do not add any additional 00081 // request parameters for the selection. 00082 return array(); 00083 } 00084 00090 function getSelectedFileIds($submissionFiles) { 00091 // By default we select nothing. 00092 return array(); 00093 } 00094 00099 function getSelectName() { 00100 return 'selectedFiles'; 00101 } 00102 } 00103 00104 ?>
1.7.1