Subversion-Projekte lars-tiefland.nagios-php

Revision

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

Revision 106 Revision 107
Zeile 2... Zeile 2...
2
 
2
 
3
    /**
3
    /**
4
     * @package nagios-php
4
     * @package nagios-php
5
     * @author Lars Tiefland <ltiefland@gmail.com>
5
     * @author Lars Tiefland <ltiefland@gmail.com>
6
     * @copyright 2013
6
     * @copyright 2013
7
     * @version $Rev: 106 $
7
     * @version $Rev: 107 $
Zeile 8... Zeile 8...
8
     */
8
     */
Zeile 9... Zeile 9...
9
 
9
 
10
    // $Id: hostgroup.php 106 2013-01-03 10:12:56Z lars $
10
    // $Id: hostgroup.php 107 2013-01-03 10:14:50Z lars $
11
 
11
 
12
    /**
12
    /**
13
     * hostGroup
13
     * hostGroup
14
     * 
14
     * 
15
     * @package nagios-php
15
     * @package nagios-php
16
     * @author Lars Tiefland
16
     * @author Lars Tiefland
17
     * @copyright 2013
17
     * @copyright 2013
18
     * @version $Id: hostgroup.php 106 2013-01-03 10:12:56Z lars $
18
     * @version $Id: hostgroup.php 107 2013-01-03 10:14:50Z lars $
19
     * @access public
19
     * @access public
20
     */
20
     */
Zeile 63... Zeile 63...
63
                    hostgroups
63
                    hostgroups
64
                WHERE
64
                WHERE
65
                    instance_id = " . $GLOBALS["cfg"]["instance"] . "
65
                    instance_id = " . $GLOBALS["cfg"]["instance"] . "
66
            ";
66
            ";
67
            $res = $GLOBALS["db"]->query( $sql );
67
            $res = $GLOBALS["db"]->query( $sql );
-
 
68
            var_dump($sql);
68
            while ( $row = $res->fetchRow() )
69
            while ( $row = $res->fetchRow() )
69
            {
70
            {
70
                $ret[] = new hostGroup( $row["hostgroup_id"] );
71
                $ret[] = new hostGroup( $row["hostgroup_id"] );
71
            }
72
            }
72
            return $ret;
73
            return $ret;