type === 2 ? 'service' : 'host'; /** @var Zend_View_Helper_CommandForm $cf */ $cf = $this->getHelper('CommandForm'); if ($type === 'host') { $objectStateName = strtolower($this->util()->getHostStateName($this->object->host_state)); $objectState = (int) $object->host_state; } else { $objectStateName = strtolower($this->util()->getServiceStateName($this->object->service_state)); $objectState = (int) $object->service_state; } ?>