FOSSology  4.4.0
Open Source License Compliance by Open Source Software
AllJobStatus.php
Go to the documentation of this file.
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2020 Siemens AG
4  Author: Gaurav Mishra <mishra.gaurav@siemens.com>
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
13 namespace Fossology\UI\Page;
14 
17 use Symfony\Component\HttpFoundation\Request;
18 use Symfony\Component\HttpFoundation\Response;
19 
25 {
26 
31  const NAME = "all_job_status";
32 
33  function __construct()
34  {
35  parent::__construct(self::NAME,
36  array(
37  self::TITLE => "Status - all server jobs",
38  self::MENU_LIST => "Admin::Dashboards::All Jobs",
39  self::REQUIRES_LOGIN => false,
40  self::PERMISSION => Auth::PERM_READ
41  ));
42  }
43 
48  protected function handle(Request $request)
49  {
50  global $SysConf;
51  $vars = array();
52  $vars['clockTime'] = $SysConf['SYSCONFIG']['ShowJobsAutoRefresh'];
53  return $this->render('all_job_status.html.twig',
54  $this->mergeWithDefault($vars));
55  }
56 }
57 
58 register_plugin(new AllJobStatus());
Contains the constants and helpers for authentication of user.
Definition: Auth.php:24
render($templateName, $vars=null, $headers=null)