33 const NAME =
"bulk-history";
39 function __construct()
41 parent::__construct(self::NAME, array(
45 $this->uploadDao = $this->
getObject(
'dao.upload');
46 $this->clearingDao = $this->
getObject(
'dao.clearing');
53 protected function handle(Request $request)
55 $uploadId = intval($request->get(
'upload'));
56 if (empty($uploadId)) {
59 $uploadTreeId = intval($request->get(
'item'));
60 if (empty($uploadTreeId)) {
63 $onlyTried = !$request->get(
'all');
65 $uploadTreeTableName = $this->uploadDao->getUploadtreeTableName($uploadId);
67 $itemTreeBounds = $this->uploadDao->getItemTreeBounds($uploadTreeId, $uploadTreeTableName);
71 $bulkHistory = $this->clearingDao->getBulkHistory($itemTreeBounds, $groupId, $onlyTried);
72 return $this->
render(
"bulk-history.html.twig",$this->mergeWithDefault(array(
'bulkHistory'=>$bulkHistory)));
render($templateName, $vars=null, $headers=null)