Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1436

Přidáno uživatelem Ondřej Fibich před více než 12 roky(ů)

Upravy:
- upravy modelu ifaces #185

Zobrazit rozdíly:

freenetis/branches/network/application/models/iface.php
);
/**
* Boolean value if iface type can have IP address
*
* @var array
*/
private static $type_has_ip_address = array
(
self::TYPE_WIRELESS => TRUE,
self::TYPE_ETHERNET => TRUE,
self::TYPE_PORT => FALSE,
self::TYPE_BRIDGE => TRUE,
self::TYPE_VLAN => TRUE,
self::TYPE_INTERNAL => TRUE
);
/**
* List of interface types that can be connected to interface with type
* given by key
*
......
* Tests if type can have mac address
*
* @author Michal Kliment
* @param type $type
* @param integer $type
* @return boolean
*/
public static function type_has_mac_address($type)
......
}
/**
* Tests if type can have IP address
*
* @author Ondrej Fibich
* @param integer $type
* @return boolean
*/
public static function type_has_ip_address($type)
{
if (isset(self::$type_has_ip_address[$type]))
return self::$type_has_ip_address[$type];
else
return FALSE;
}
/**
* Gets whole array of indicator of available MAC
*
* @return array

Také k dispozici: Unified diff