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
-
- 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_id | Device active link ID |
- Returns
- Mysql_result
Device_active_link_Model::get_all_active_links |
( |
|
$params = array() | ) |
|
Get all device active links.
- Parameters
-
- 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
-
- 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_id | Device ID |
array | $dal_ids | Array 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 | $devices | Array of device IDs to map |
integer | $dal_id | Device 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_id | Device 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_id | Device 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: