28 lines
794 B
PHP
28 lines
794 B
PHP
|
<?php
|
||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: capp
|
||
|
* Date: 29/05/2018
|
||
|
* Time: 15:49
|
||
|
*/
|
||
|
|
||
|
|
||
|
class Nano_health_model extends CI_Model
|
||
|
{
|
||
|
// Nano sante
|
||
|
public function getAllIlinkWorldNetworks()
|
||
|
{
|
||
|
$query = $this->db->query("SELECT networks.name AS network,networks.status AS status,networks.id,cc.name AS country,networks.country_id , configWallet.id_network , configWallet.type,cc.currency_code,
|
||
|
configWallet.has_nano_health FROM `networks`
|
||
|
INNER JOIN countries_currencies cc ON networks.country_id=cc.id LEFT JOIN configWallet ON configWallet.id_network = networks.id WHERE status = 1 AND configWallet.type = 'ilink'");
|
||
|
if ($query->num_rows() > 0) {
|
||
|
return $query;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|