Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Retrieve restore parameters from query
  • Loading branch information
fbergkemper committed May 8, 2015
1 parent d04862f commit 63fc542
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions module/Restore/src/Restore/Controller/RestoreController.php
Expand Up @@ -32,6 +32,8 @@
class RestoreController extends AbstractActionController
{

protected $restore_params = array();

/**
*
*/
Expand All @@ -40,6 +42,40 @@ public function indexAction()
return new ViewModel();
}

/**
* Retrieve restore parameters
*/
private function getRestoreParams()
{
if($this->params()->fromQuery('job')) {
$this->restore_params['job'] = $this->params()->fromQuery('job');
}
else {
$this->restore_params['job'] = null;
}

if($this->params()->fromQuery('client')) {
$this->restore_params['client'] = $this->params()->fromQuery('client');
}
else {
$this->restore_params['client'] = null;
}

if($this->params()->fromQuery('restoreclient')) {
$this->restore_params['restoreclient'] = $this->params()->fromQuery('restoreclient');
}
else {
$this->restore_params['restoreclient'] = null;
}

if($this->params()->fromQuery('fileset')) {
$this->restore_params['fileset'] = $this->params()->fromQuery('fileset');
}
else {
$this->restore_params['fileset'] = null;
}
}

/**
* Get job list from director in long or short format
*
Expand Down

0 comments on commit 63fc542

Please sign in to comment.