Revize 1221
Přidáno uživatelem Ondřej Fibich před asi 13 roky(ů)
freenetis/branches/testing/application/models/iface.php | ||
---|---|---|
}
|
||
|
||
/**
|
||
* Gets count of wireless settings of iface
|
||
*
|
||
* @author Ondřej Fibich
|
||
* @param integer $iface_id
|
||
* @return integer
|
||
*/
|
||
public function count_ws_of_iface($iface_id = NULL)
|
||
{
|
||
if ($iface_id === NULL && $this->id)
|
||
{
|
||
$iface_id = $this->id;
|
||
}
|
||
|
||
return $this->db->query("
|
||
SELECT COUNT(*) AS count
|
||
FROM wireless_ifaces
|
||
WHERE iface_id = ?
|
||
", $iface_id)->current()->count;
|
||
}
|
||
|
||
/**
|
||
* Function gets all interfaces.
|
||
*
|
||
* @param $limit_from
|
freenetis/branches/testing/application/controllers/devices.php | ||
---|---|---|
$linkback = Path::instance()->previous()->current();
|
||
|
||
if (url::slice(url_lang::uri($linkback),1,1) == 'show')
|
||
$linkback = Path::instance()->previous()->current();
|
||
$linkback = Path::instance()->previous()->current();
|
||
|
||
// count of deleted interfaces
|
||
$deleted_ifaces = 0;
|
Také k dispozici: Unified diff
Opravy:
- oprava chybejici funkce count_ws_of_iface znemoznujici smazani zarizeni