-<?php\r
-/**\r
- * Bacula® - The Network Backup Solution\r
- * Baculum - Bacula web interface\r
- *\r
- * Copyright (C) 2013-2014 Marcin Haba\r
- *\r
- * The main author of Baculum is Marcin Haba.\r
- * The main author of Bacula is Kern Sibbald, with contributions from many\r
- * others, a complete list can be found in the file AUTHORS.\r
- *\r
- * You may use this file and others of this release according to the\r
- * license defined in the LICENSE file, which includes the Affero General\r
- * Public License, v3.0 ("AGPLv3") and some additional permissions and\r
- * terms pursuant to its AGPLv3 Section 7.\r
- *\r
- * Bacula® is a registered trademark of Kern Sibbald.\r
- */\r
- \r
-Prado::using('System.Web.UI.ActiveControls.TActiveDataGrid');\r
-Prado::using('System.Web.UI.ActiveControls.TActiveRepeater');\r
-Prado::using('System.Web.UI.ActiveControls.TActiveLinkButton');\r
-Prado::using('System.Web.UI.ActiveControls.TActivePanel');\r
-Prado::using('System.Web.UI.ActiveControls.TCallback');\r
-Prado::using('Application.Portlets.Portlets');\r
-\r
-class JobRunList extends Portlets {
-\r
- public $ShowID, $windowTitle, $oldDirector;\r
-\r
- private $jobTypes = array('B' => 'Backup', 'M' => 'Migrated', 'V' => 'Verify', 'R' => 'Restore', 'I' => 'Internal', 'D' => 'Admin', 'A' => 'Archive', 'C' => 'Copy', 'g' => 'Migration');\r
-\r
- private $jobStates;\r
- \r
+<?php
+/*
+ * Bacula(R) - The Network Backup Solution
+ * Baculum - Bacula web interface
+ *
+ * Copyright (C) 2013-2016 Kern Sibbald
+ *
+ * The main author of Baculum is Marcin Haba.
+ * The original author of Bacula is Kern Sibbald, with contributions
+ * from many others, a complete list can be found in the file AUTHORS.
+ *
+ * You may use this file and others of this release according to the
+ * license defined in the LICENSE file, which includes the Affero General
+ * Public License, v3.0 ("AGPLv3") and some additional permissions and
+ * terms pursuant to its AGPLv3 Section 7.
+ *
+ * This notice must be preserved when any source code is
+ * conveyed and/or propagated.
+ *
+ * Bacula(R) is a registered trademark of Kern Sibbald.
+ */
+
+Prado::using('System.Web.UI.ActiveControls.TActiveDataGrid');
+Prado::using('System.Web.UI.ActiveControls.TActiveRepeater');
+Prado::using('System.Web.UI.ActiveControls.TActiveLinkButton');
+Prado::using('System.Web.UI.ActiveControls.TActivePanel');
+Prado::using('System.Web.UI.ActiveControls.TCallback');
+Prado::using('Application.Portlets.ISlideWindow');
+Prado::using('Application.Portlets.Portlets');
+
+class JobRunList extends Portlets implements ISlideWindow {
+
+ public $ID;
+ public $buttonID;
+ public $windowTitle;
+ public $oldDirector;
+ private $jobStates;
+ private $jobTypes = array(
+ 'B' => 'Backup',
+ 'M' => 'Migrated',
+ 'V' => 'Verify',
+ 'R' => 'Restore',
+ 'I' => 'Internal',
+ 'D' => 'Admin',
+ 'A' => 'Archive',
+ 'C' => 'Copy',
+ 'g' => 'Migration'
+ );
+
+ public function setID($id) {
+ $this->ID = $id;
+ }
+
+ public function getID($hideAutoID = true) {
+ return $this->ID;
+ }
+
+ public function setButtonID($id) {
+ $this->buttonID = $id;
+ }
+
+ public function getButtonID() {
+ return $this->buttonID;
+ }
+
+ public function setWindowTitle($param) {
+ $this->windowTitle = $param;
+ }
+
+ public function getWindowTitle() {
+ return $this->windowTitle;
+ }
+