root/trunk/models/NpcServicestatus.php @ 117

Revision 117, 0.7 KB (checked in by divagater, 5 years ago)

Added graph icon and handling for mapped graphs. Only implemented on the service list so far

Line 
1<?php
2
3class NpcServicestatus extends BaseNpcServicestatus
4{
5    public function setUp()
6    {
7        $this->hasOne('NpcInstances as Instance', array('local' => 'instance_id', 'foreign' => 'instance_id'));
8        $this->hasOne('NpcObjects as Object', array('local' => 'service_object_id', 'foreign' => 'object_id'));
9        $this->hasOne('NpcServices as Service', array('local' => 'service_object_id', 'foreign' => 'service_object_id'));
10        $this->hasOne('NpcServiceGraphs as Graph', array('local' => 'service_object_id', 'foreign' => 'service_object_id'));
11        $this->hasMany('NpcServicegroups as Servicegroups', array('local' => 'service_object_id', 'foreign' => 'servicegroup_id', 'refClass' => 'NpcServicegroupMembers'));
12    }
13}
Note: See TracBrowser for help on using the browser.