InspectController: pimp commands action

This commit is contained in:
Thomas Gelf 2015-12-02 03:37:10 +01:00
parent 570f8d9440
commit 07cf2f53a8
1 changed files with 11 additions and 3 deletions

View File

@ -53,8 +53,16 @@ class InspectController extends ActionController
public function commandsAction()
{
print_r($this->api()->getCheckCommandObjects());
exit;
$db = $this->db();
echo '<pre>';
foreach ($this->api()->setDb($db)->getCheckCommandObjects() as $object) {
if (! $object::exists($object->object_name, $db)) {
// var_dump($object->store());
echo $object;
}
}
echo '</pre>';
exit;
}
public function zonesAction()
@ -63,7 +71,7 @@ class InspectController extends ActionController
echo '<pre>';
foreach ($this->api()->setDb($db)->getZoneObjects() as $zone) {
if (! $zone::exists($zone->object_name, $db)) {
//var_dump($zone->store());
// var_dump($zone->store());
echo $zone;
}
}