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

NagVisMap::checkHoverTemplateExists ( &$  obj,
printErr 
)

Checks if the requested hover template file exists

Parameters:
Array $obj Array with object informations
Returns:
Boolean Check Result
Author:
Lars Michelsen <lars@vertical-visions.de>

Definition at line 536 of file NagVisMap.php.

                                                         {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method NagVisMap::checkHoverTemplateExists(&$obj,'.$printErr.')');
            if(file_exists($this->MAINCFG->getValue('paths','hovertemplate').'tmpl.'.$obj['hover_template'].'.html')) {
                  if (DEBUG&&DEBUGLEVEL&1) debug('End method NagVisMap::checkHoverTemplateExists(): TRUE');
                  return TRUE;
            } else {
                  if($printErr == 1) {
                        $FRONTEND = new GlobalPage($this->MAINCFG,Array('languageRoot'=>'nagvis:global'));
                        $FRONTEND->messageToUser('ERROR','hoverTemplateNotExists','FILE~'.$this->MAINCFG->getValue('paths', 'hovertemplate').'tmpl.'.$obj['hover_template'].'.html');
                  }
                  if (DEBUG&&DEBUGLEVEL&1) debug('End method NagVisMap::checkHoverTemplateExists(): FALSE');
                  return FALSE;
            }
      }


Generated by  Doxygen 1.6.0   Back to index