InspectController: more test actions

This commit is contained in:
Thomas Gelf 2015-11-26 11:01:15 +01:00
parent ffe17cf58c
commit 8f389cf51d
1 changed files with 20 additions and 0 deletions

View File

@ -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();