mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
ServiceController: Move protected methods
This commit is contained in:
parent
b5f1580839
commit
6655140030
1 changed files with 10 additions and 10 deletions
|
|
@ -53,16 +53,6 @@ class ServiceController extends Controller
|
|||
$this->setTitleTab($this->getRequest()->getActionName());
|
||||
}
|
||||
|
||||
public function getCommandTargetsUrl()
|
||||
{
|
||||
return Links::service($this->service, $this->service->host);
|
||||
}
|
||||
|
||||
public function fetchCommandTargets()
|
||||
{
|
||||
return [$this->service];
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
if ($this->service->state->is_overdue) {
|
||||
|
|
@ -218,4 +208,14 @@ class ServiceController extends Controller
|
|||
$this->view->title = $tab->getLabel();
|
||||
}
|
||||
}
|
||||
|
||||
public function fetchCommandTargets()
|
||||
{
|
||||
return [$this->service];
|
||||
}
|
||||
|
||||
public function getCommandTargetsUrl()
|
||||
{
|
||||
return Links::service($this->service, $this->service->host);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue