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

Public Member Functions

 count_all_active_links ($filter_sql= '')
 Count of all device active links.
 get_all_active_links ($params=array())
 Get all device active links.
 map_devices_to_active_link ($devices=NULL, $dal_id=NULL, $type=Device_active_link_Model::TYPE_DEVICE)
 Maps devices to device active link.
 unmap_devices_from_active_link ($dal_id=NULL, $type=Device_active_link_Model::TYPE_DEVICE)
 Unmaps devices from device active link.
 map_device_to_active_links ($device_id=NULL, $dal_ids=NULL, $type=Device_active_link_Model::TYPE_DEVICE)
 Maps device to device active links.
 unmap_device_from_active_links ($device_id=NULL, $type=Device_active_link_Model::TYPE_DEVICE)
 Unmaps device from device active links.
 get_active_link_devices ($dal_id=NULL, $type=Device_active_link_Model::TYPE_DEVICE)
 Return all devices using given active link.
 get_device_active_links ($device_id=NULL, $type=Device_active_link_Model::TYPE_DEVICE)
 Returns active links used by device.

Public Attributes

const TYPE_DEVICE = 1
const TYPE_TEMPLATE = 2

Protected Attributes

 $has_many

Member Function Documentation

Device_active_link_Model::count_all_active_links (   $filter_sql = '')

Count of all device active links.

Parameters
array$filter_values
Returns
integer
Device_active_link_Model::get_active_link_devices (   $dal_id = NULL,
  $type = Device_active_link_Model::TYPE_DEVICE 
)

Return all devices using given active link.

Parameters
integer$dal_idDevice active link ID
Returns
Mysql_result
Device_active_link_Model::get_all_active_links (   $params = array())

Get all device active links.

Parameters
array$params
Returns
Mysql_Result
Device_active_link_Model::get_device_active_links (   $device_id = NULL,
  $type = Device_active_link_Model::TYPE_DEVICE 
)

Returns active links used by device.

Parameters
type$device_idDevice ID
Returns
null
Device_active_link_Model::map_device_to_active_links (   $device_id = NULL,
  $dal_ids = NULL,
  $type = Device_active_link_Model::TYPE_DEVICE 
)

Maps device to device active links.

Parameters
integer$device_idDevice ID
array$dal_idsArray of device active link IDs
Returns
Database_result
Device_active_link_Model::map_devices_to_active_link (   $devices = NULL,
  $dal_id = NULL,
  $type = Device_active_link_Model::TYPE_DEVICE 
)

Maps devices to device active link.

Parameters
array$devicesArray of device IDs to map
integer$dal_idDevice active link ID
Returns
Database_result
Device_active_link_Model::unmap_device_from_active_links (   $device_id = NULL,
  $type = Device_active_link_Model::TYPE_DEVICE 
)

Unmaps device from device active links.

Parameters
integer$device_idDevice ID
Returns
Database_result
Device_active_link_Model::unmap_devices_from_active_link (   $dal_id = NULL,
  $type = Device_active_link_Model::TYPE_DEVICE 
)

Unmaps devices from device active link.

Parameters
integer$dal_idDevice active link ID
Returns
Database_result

Member Data Documentation

Device_active_link_Model::$has_many
protected
Initial value:
array
(
'device_active_links'
)

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