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

NagVisMap::checkHoverTemplateReadable ( &$  obj,
printErr 
)

Checks if the requested hover template file is readable

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

Definition at line 514 of file NagVisMap.php.

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


Generated by  Doxygen 1.6.0   Back to index