/** * Get the node information * * @return array */ public static function getNode($pollerId) { $poller = Poller::get($pollerId); return Node::get($poller['node_id']); }
/** * Update a poller * * @method get * @route /poller/[i:id] */ public function editAction() { $params = $this->getParams(); $poller = PollerModel::get($params['id']); $node = NodeModel::get($poller['node_id']); $this->tpl->addJs('poller-template.js', 'bottom', 'centreon-configuration'); parent::editAction(array(), array('ip_address' => $node['ip_address'])); }