Пример #1
0
 /**
  * This method is used to display hotspot
  * in detail based on the id
  * @param string $id
  * @return type array
  *  
  */
 public function detail($id)
 {
     $sentence = new SentenceUtil();
     $sentence->fromCommand("/ip/hotspot/active/print");
     $sentence->where(".id", "=", $id);
     $this->talker->send($sentence);
     $rs = $this->talker->getResult();
     $i = 0;
     if ($i < $rs->size()) {
         return $rs->getResultArray();
     } else {
         return "No IP Hotspot Active With This id = " . $id;
     }
 }
Пример #2
0
 /**
  * This method is used to display all ip dhcp relay
  * @return type array
  */
 public function getAll()
 {
     $sentence = new SentenceUtil();
     $sentence->fromCommand("/ip/dhcp-relay/getall");
     $this->talker->send($sentence);
     $rs = $this->talker->getResult();
     $i = 0;
     if ($i < $rs->size()) {
         return $rs->getResultArray();
     } else {
         return "No Ip Dhcp-Relay To Set, Please Your Add Ip Dhcp-Relay";
     }
 }