InspectController: more test actions
This commit is contained in:
parent
ffe17cf58c
commit
8f389cf51d
|
@ -51,6 +51,26 @@ class InspectController extends ActionController
|
|||
);
|
||||
}
|
||||
|
||||
public function commandsAction()
|
||||
{
|
||||
print_r($this->api()->getCheckCommandObjects());
|
||||
exit;
|
||||
}
|
||||
|
||||
public function zonesAction()
|
||||
{
|
||||
$db = $this->db();
|
||||
echo '<pre>';
|
||||
foreach ($this->api()->setDb($db)->getZoneObjects() as $zone) {
|
||||
if (! $zone::exists($zone->object_name, $db)) {
|
||||
//var_dump($zone->store());
|
||||
echo $zone;
|
||||
}
|
||||
}
|
||||
echo '</pre>';
|
||||
exit;
|
||||
}
|
||||
|
||||
public function statusAction()
|
||||
{
|
||||
$this->view->status = $status = $this->api()->getStatus();
|
||||
|
|
Loading…
Reference in New Issue