FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
Link_Model Class Reference
Inheritance diagram for Link_Model:
ORM

Public Member Functions

 count_all_links ($filter_sql= '')
 Counts all links.
 get_all_links ($limit_from=0, $limit_results=20, $order_by= 'id', $order_by_direction= 'asc', $filter_sql= '')
 Gets all linkss.
 get_roaming ()
 Returns roaming link.
 get_items ($link_id=NULL)
 Returns all items (interfaces) which belong to given link.
 select_list_by_iface_type ($type)
 Returns all links according to given type of iface.

Static Public Member Functions

static get_wireless_norm ($norm)
 Returns norm name by given norm id.
static get_wireless_norms ()
 Returns all norm names.
static get_wireless_polarization ($polarization)
 Returns polarization name by given polarization id.
static get_wireless_polarizations ()
 Returns all polarization names.
static get_wireless_max_bitrate ($norm=NULL)
 Returns max bitrate of norm.
static get_wireless_max_bitrates ()
 Returns all max bitrates of norms.
static get_medium_type ($medium_type_id)
 Returns medium type by medium type id.
static get_max_ifaces_count ($iface_type)
 Returns maximum number of interfaces in link.
static get_medium_types ()
 Returns medium types.

Public Attributes

const MEDIUM_ROAMING = 1
const MEDIUM_AIR = 2
const MEDIUM_CABLE = 3
const MEDIUM_SINGLE_FIBER = 4
const MEDIUM_MULTI_FIBER = 5
const NORM_802_11_A = 1
const NORM_802_11_B = 2
const NORM_802_11_G = 3
const NORM_802_11_N = 4
const NORM_802_11_B_G = 5
const POLARIZATION_HORIZONTAL = 1
const POLARIZATION_VERTICAL = 2
const POLARIZATION_CIRCULAR = 3
const POLARIZATION_BOTH = 4
const POLARIZATION_HORIZONTAL_VERTICAL = 5

Protected Attributes

 $has_many = array('ifaces')

Member Function Documentation

Link_Model::count_all_links (   $filter_sql = '')

Counts all links.

Parameters
array$filter_sql
Returns
integer
Link_Model::get_all_links (   $limit_from = 0,
  $limit_results = 20,
  $order_by = 'id',
  $order_by_direction = 'asc',
  $filter_sql = '' 
)

Gets all linkss.

Parameters
integer$limit_from
integer$limit_results
string$order_by
string$order_by_direction
array$filter_values
Returns
Mysql_Result
Link_Model::get_items (   $link_id = NULL)

Returns all items (interfaces) which belong to given link.

Author
Michal Kliment
Parameters
integer$link_id
Returns
Mysql_Result
static Link_Model::get_max_ifaces_count (   $iface_type)
static

Returns maximum number of interfaces in link.

Author
David Raška
Parameters
integer$iface_type
Returns
integer
static Link_Model::get_medium_type (   $medium_type_id)
static

Returns medium type by medium type id.

Author
Michal Kliment
Parameters
integer$type_id
Returns
string
static Link_Model::get_medium_types ( )
static

Returns medium types.

Author
Michal Kliment
Returns
array
Link_Model::get_roaming ( )

Returns roaming link.

This function changes current object values.

Author
Michal Kliment
Returns
integer
static Link_Model::get_wireless_max_bitrate (   $norm = NULL)
static

Returns max bitrate of norm.

Author
Michal Kliment
Parameters
integer$norm
Returns
integer
static Link_Model::get_wireless_max_bitrates ( )
static

Returns all max bitrates of norms.

Author
Michal Kliment
Parameters
integer$norm
Returns
integer
static Link_Model::get_wireless_norm (   $norm)
static

Returns norm name by given norm id.

Author
Michal Kliment
Parameters
integer$norm
Returns
string
static Link_Model::get_wireless_norms ( )
static

Returns all norm names.

Author
Michal Kliment
Returns
array
static Link_Model::get_wireless_polarization (   $polarization)
static

Returns polarization name by given polarization id.

Author
Michal Kliment
Parameters
integer$polarization
Returns
string
static Link_Model::get_wireless_polarizations ( )
static

Returns all polarization names.

Author
Michal Kliment
Returns
array
Link_Model::select_list_by_iface_type (   $type)

Returns all links according to given type of iface.

Author
Ondřej Fibich
Parameters
integer$type
Returns
array

The documentation for this class was generated from the following file: