/** * This method is used to delete hotspot by id * @param string $id * @return array * */ public function delete($id) { $sentence = new SentenceUtil(); $sentence->addCommand("/ip/hotspot/active/remove"); $sentence->where(".id", "=", $id); $enable = $this->talker->send($sentence); return "Sucsess"; }
/** * This method is used to set or edit by id * @param type $param array * @param type $id string * @return type array * */ public function set($param, $id) { $sentence = new SentenceUtil(); $sentence->addCommand("/ip/hotspot/user/set"); foreach ($param as $name => $value) { $sentence->setAttribute($name, $value); } $sentence->where(".id", "=", $id); $this->talker->send($sentence); return "Sucsess"; }
/** * This method is used to remove ip dhcp relay by id * @param type $id string * @return type array */ public function delete($id) { $sentence = new SentenceUtil(); $sentence->addCommand("/ip/dhcp-relay/remove"); $sentence->where(".id", "=", $id); $this->talker->send($sentence); return "Sucsess"; }