16 use Symfony\Component\HttpFoundation\Request;
17 use Symfony\Component\HttpFoundation\Response;
18 use Symfony\Component\HttpFoundation\Session\Session;
22 const NAME =
"bulk-history";
28 function __construct()
30 parent::__construct(self::NAME, array(
34 $this->uploadDao = $this->
getObject(
'dao.upload');
35 $this->clearingDao = $this->
getObject(
'dao.clearing');
42 protected function handle(Request $request)
44 $uploadId = intval($request->get(
'upload'));
45 if (empty($uploadId)) {
48 $uploadTreeId = intval($request->get(
'item'));
49 if (empty($uploadTreeId)) {
52 $onlyTried = !$request->get(
'all');
54 $uploadTreeTableName = $this->uploadDao->getUploadtreeTableName($uploadId);
56 $itemTreeBounds = $this->uploadDao->getItemTreeBounds($uploadTreeId, $uploadTreeTableName);
60 $bulkHistory = $this->clearingDao->getBulkHistory($itemTreeBounds, $groupId, $onlyTried);
61 return $this->
render(
"bulk-history.html.twig",$this->mergeWithDefault(array(
'bulkHistory'=>$bulkHistory)));
Contains the constants and helpers for authentication of user.
render($templateName, $vars=null, $headers=null)