Esempio n. 1
0
 /**
  * 
  * @param type $id
  * @return type
  */
 public function getIpWithClients($id)
 {
     $select = $this->select()->where('id = ?', intval($id));
     $data = $this->fetchRow($select)->toArray();
     $clientsRelation = new WsClientHasWsSaveip();
     $clientsRaw = $clientsRelation->getClientByIp(intval($id));
     $clients = array();
     if ($clientsRaw) {
         $array = $clientsRaw->toArray();
         foreach ($array as $val) {
             $clients[] = $val['ws_client_id'];
         }
     }
     $data['clients'] = $clients;
     return $data;
 }