Logo Search packages:      
Sourcecode: nagvis version File versions  Download package

NagVisMap::getMapObjects ( getState = 1,
mergeWithGlobals = 1 
)

Gets all objects of the map

Parameters:
Boolean $getState With state?
Returns:
Array Array of Objects of this map
Author:
Lars Michelsen <lars@vertical-visions.de>

Definition at line 651 of file NagVisMap.php.

Referenced by getFavicon(), NagVisBackground::NagVisBackground(), NagVisMap(), and parseMap().

                                                              {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method GlobalMap::getMapObjects('.$getState.','.$mergeWithGlobals.')');
            $objects = Array();
            
            $objects = array_merge($objects,$this->getObjectsOfType('map',$getState,$mergeWithGlobals));
            $objects = array_merge($objects,$this->getObjectsOfType('host',$getState,$mergeWithGlobals));
            $objects = array_merge($objects,$this->getObjectsOfType('service',$getState,$mergeWithGlobals));
            $objects = array_merge($objects,$this->getObjectsOfType('hostgroup',$getState,$mergeWithGlobals));
            $objects = array_merge($objects,$this->getObjectsOfType('servicegroup',$getState,$mergeWithGlobals));
            $objects = array_merge($objects,$this->getObjectsOfType('textbox',$getState,$mergeWithGlobals));
            $objects = array_merge($objects,$this->getObjectsOfType('shape',0,$mergeWithGlobals));
            
            if (DEBUG&&DEBUGLEVEL&1) debug('End method GlobalMap::getMapObjects(): Array(...)');
            return $objects;
      }


Generated by  Doxygen 1.6.0   Back to index