FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
AllJobStatus.php
Go to the documentation of this file.
1 <?php
27 namespace Fossology\UI\Page;
28 
33 
39 {
40 
45  const NAME = "all_job_status";
46 
47  function __construct()
48  {
49  parent::__construct(self::NAME,
50  array(
51  self::TITLE => "Status - all server jobs",
52  self::MENU_LIST => "Admin::Dashboards::All Jobs",
53  self::REQUIRES_LOGIN => false,
54  self::PERMISSION => Auth::PERM_NONE
55  ));
56  }
57 
62  protected function handle(Request $request)
63  {
64  global $SysConf;
65  $vars = array();
66  $vars['clockTime'] = $SysConf['SYSCONFIG']['ShowJobsAutoRefresh'];
67  return $this->render('all_job_status.html.twig',
68  $this->mergeWithDefault($vars));
69  }
70 }
71 
72 register_plugin(new AllJobStatus());
render($templateName, $vars=null, $headers=null)