mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 13:54:27 +02:00
inspect/object: new url
This commit is contained in:
parent
dddf0d8ac5
commit
e43bc394df
@ -36,14 +36,21 @@ class InspectController extends ActionController
|
||||
}
|
||||
|
||||
if (! empty($type->fields)) {
|
||||
$this->view->objects = $this->api()->getObjects(
|
||||
$this->view->objects = $this->api()->listObjects(
|
||||
$typeName,
|
||||
$type->plural_name
|
||||
//array_keys((array) $type->fields)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function objectAction()
|
||||
{
|
||||
$this->view->object = $this->api()->getObject(
|
||||
$this->params->get('name'),
|
||||
$this->params->get('plural')
|
||||
);
|
||||
}
|
||||
|
||||
public function statusAction()
|
||||
{
|
||||
$this->view->status = $status = $this->api()->getStatus();
|
||||
|
9
application/views/scripts/inspect/object.phtml
Normal file
9
application/views/scripts/inspect/object.phtml
Normal file
@ -0,0 +1,9 @@
|
||||
<div class="controls">
|
||||
<?= $this->tabs ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<pre>
|
||||
<?= $this->escape(print_r($this->object, 1)) ?>
|
||||
</pre>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user