/** * * @cmdForm /centreon-configuration/service/update optional * @cmdObject string service the service * @cmdParam none service-custommacros optional * @cmdParam none service-tags optional * @cmdParam boolean|false disable optional disable the host because it sucks * @cmdParam boolean|true enable optional enable the host */ public function updateAction($object, $params = null) { $repository = $this->repository; $host_slug = $repository::getHostSlugFromServiceSlug($object['service']); $params['service_hosts'] = $host_slug; parent::updateAction($object, $params); }
/** * * @cmdForm /centreon-configuration/hosttemplate/update optional * @cmdObject string host-template the template * @cmdParam none host-custommacros optional * @cmdParam none host-tags optional * @cmdParam none enable optional * @cmdParam boolean|false disable optional disable the host because it sucks * @cmdParam boolean|true enable optional enable the host */ public function updateAction($object, $params = null) { parent::updateAction($object, $params); }