Subversion-Projekte lars-tiefland.nagios-php

Revision

Revision 62 | Revision 84 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 62 Revision 63
Zeile 26... Zeile 26...
26
            $this->members = $this->getMemberList( $id );
26
            $this->members = $this->getMemberList( $id );
27
        }
27
        }
Zeile 28... Zeile 28...
28
 
28
 
29
        public static function getList()
29
        public static function getList()
-
 
30
        {
-
 
31
            $sql="SELECT
-
 
32
                    hostgroup_id
-
 
33
                FROM
-
 
34
                    hostgroups
-
 
35
                WHERE
-
 
36
                    instance_id = " . $GLOBALS["cfg"]["instance"] . "
-
 
37
            ";
-
 
38
            $res = $GLOBALS["db"]->query( $sql );
-
 
39
            while ( $row = $res->fetchRow() )
-
 
40
            {
30
        {
41
                $ret[] = new hostGroup( $row["hostgroup_id"] );
-
 
42
            }
31
 
43
            return $ret;
Zeile 32... Zeile 44...
32
        }
44
        }
33
 
45
 
34
        public function getMemberList( $hg_id )
46
        public function getMemberList( $hg_id )