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

NagVisMap::getHoverMenu ( &$  obj  ) 

Creates a hover box for objects

Parameters:
Array $obj Array with object informations
Returns:
String Code for the hover box
Author:
Lars Michelsen <lars@vertical-visions.de>

Definition at line 363 of file NagVisMap.php.

                                   {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method NagVisMap::getHoverMenu(&$obj)');
            $ret = '';
            // FIXME 1.1: check if this is an object, where a menu should be displayed
            if(1) {
                  $ret .= 'onmouseover="return overlib(\'';
                  if(isset($obj['hover_url']) && $obj['hover_url'] != '') {
                        $ret .= $this->readHoverUrl($obj);
                  } else {
                        $ret .= $this->createInfoBox($obj);
                  }
                  
                  $ret .= '\', WRAP, VAUTO, DELAY, '.($obj['hover_delay']*1000).');" onmouseout="return nd();"';
                  
                  if (DEBUG&&DEBUGLEVEL&1) debug('End method NagVisMap::getHoverMenu(): Array(...)');
                  return $ret;
            }
      }


Generated by  Doxygen 1.6.0   Back to index