/** * Return an empty array with all possible host state names * * @return array An array containing all possible host states as keys and 0 as values. */ public static function getServiceStatesSummaryEmpty() { return String::cartesianProduct(array(array('services'), array(Service::getStateText(Service::STATE_OK), Service::getStateText(Service::STATE_WARNING), Service::getStateText(Service::STATE_CRITICAL), Service::getStateText(Service::STATE_UNKNOWN), Service::getStateText(Service::STATE_PENDING)), array(null, 'handled', 'unhandled')), '_'); }
/** * Return an empty array with all possible host state names * * @return array An array containing all possible host states as keys and 0 as values. */ public static function getHostStatesSummaryEmpty() { return String::cartesianProduct(array(array('hosts'), array(Host::getStateText(Host::STATE_UP), Host::getStateText(Host::STATE_DOWN), Host::getStateText(Host::STATE_UNREACHABLE), Host::getStateText(Host::STATE_PENDING)), array(null, 'handled', 'unhandled')), '_'); }