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

GlobalMapCfg::GlobalMapCfg ( &$  MAINCFG,
name = '' 
) [inherited]

Class Constructor

Parameters:
GlobalMainCfg $MAINCFG
String $name Name of the map
Author:
Lars Michelsen <lars@vertical-visions.de>

Definition at line 24 of file GlobalMapCfg.php.

References GlobalMapCfg::getName().

                                                {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method GlobalMapCfg::GlobalMapCfg($MAINCFG,'.$name.')');
            $this->MAINCFG = &$MAINCFG;
            $this->name = $name;
            
            $this->validConfig = Array(
                  'global' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'allowed_for_config' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE),
                        'allowed_user' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE),
                        'map_image' => Array('must' => 1,
                              'match' => MATCH_PNGFILE),
                        'alias' => Array('must' => 0,
                              'default' => $this->getName(),
                              'match' => MATCH_STRING),
                        'usegdlibs' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'usegdlibs'),
                              'match' => MATCH_BOOLEAN),
                        'show_in_lists' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'showinlists'),
                              'match' => MATCH_BOOLEAN),
                        'backend_id' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'backend'),
                              'match' => MATCH_STRING_NO_SPACE),
                        'recognize_services' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'recognizeservices'),
                              'match' => MATCH_BOOLEAN),
                        'only_hard_states' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'onlyhardstates'),
                              'match' => MATCH_BOOLEAN),
                        'iconset' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'icons'),
                              'match' => MATCH_STRING_NO_SPACE),
                        'background_color' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'backgroundcolor'),
                              'match' => MATCH_COLOR),
                        'hover_template' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'hovertemplate'),
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_delay' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'hoverdelay'),
                              'match' => MATCH_INTEGER),
                        'header_template' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'headertemplate'),
                              'match' => MATCH_STRING_NO_SPACE),
                        'url_target' => Array('must' => 0,
                              'default' => $this->MAINCFG->getValue('defaults', 'urltarget'),
                              'match' => MATCH_STRING_NO_SPACE),
                        'label_show' => Array('must' => 0,
                              'default' => '0',
                              'match' => MATCH_BOOLEAN),
                        'label_x' => Array('must' => 0,
                              'default' => '-20',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_y' => Array('must' => 0,
                              'default' => '+20',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_width' => Array('must' => 0,
                              'default' => 'auto',
                              'match' => MATCH_INTEGER),
                        'label_background' => Array('must' => 0,
                              'default' => 'transparent',
                              'match' => MATCH_COLOR)),
                  'host' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'backend_id' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'host_name' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE),
                        'x' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'y' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'recognize_services' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'only_hard_states' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'iconset' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_template' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_delay' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'hover_url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'line_type' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'url_target' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'label_show' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'label_text' => Array('must' => 0,
                              'default' => '[name]',
                              'match' => MATCH_ALL),
                        'label_x' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_y' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_width' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER),
                        'label_background' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_COLOR)),
                  'hostgroup' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'backend_id' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hostgroup_name' => Array('must' => 1,
                              'match' => MATCH_STRING),
                        'x' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'y' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'recognize_services' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'only_hard_states' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'iconset' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_template' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_delay' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'hover_url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'line_type' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'url_target' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'label_show' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'label_text' => Array('must' => 0,
                              'default' => '[name]',
                              'match' => MATCH_ALL),
                        'label_x' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_y' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_width' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER),
                        'label_background' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_COLOR)),
                  'service' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'backend_id' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'host_name' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE),
                        'service_description' => Array('must' => 1),
                        'x' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'y' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'only_hard_states' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'iconset' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_template' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_delay' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'hover_url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'line_type' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'url_target' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'label_show' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'label_text' => Array('must' => 0,
                              'default' => '[name] [service_description]',
                              'match' => MATCH_ALL),
                        'label_x' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_y' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_width' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER),
                        'label_background' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_COLOR)),
                  'servicegroup' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'backend_id' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'servicegroup_name' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE),
                        'x' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'y' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'only_hard_states' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'iconset' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_template' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_delay' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'hover_url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'line_type' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'url_target' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'label_show' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'label_text' => Array('must' => 0,
                              'default' => '[name]',
                              'match' => MATCH_ALL),
                        'label_x' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_y' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_width' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER),
                        'label_background' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_COLOR)),
                  'map' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'map_name' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE),
                        'x' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'y' => Array('must' => 1,
                              'match' => MATCH_FLOAT),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'only_hard_states' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'iconset' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'url_target' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_template' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_delay' => Array('must' => 0,
                              'match' => MATCH_INTEGER),
                        'hover_url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'label_show' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_BOOLEAN),
                        'label_text' => Array('must' => 0,
                              'default' => '[name]',
                              'match' => MATCH_ALL),
                        'label_x' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_y' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER_PRESIGN),
                        'label_width' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_INTEGER),
                        'label_background' => Array('must' => 0,
                              'default' => '',
                              'match' => MATCH_COLOR)),
                  'textbox' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'text' => Array('must' => 1,
                              'match' => MATCH_ALL),
                        'x' => Array('must' => 1,
                              'match' => MATCH_INTEGER),
                        'y' => Array('must' => 1,
                              'match' => MATCH_INTEGER),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'w' => Array('must' => 1,
                              'match' => MATCH_INTEGER),
                        'background_color' => Array('must' => 0,
                              'default' => '#C0C0C0',
                              'match' => MATCH_COLOR)),
                  'shape' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'use' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'icon' => Array('must' => 1),
                        'x' => Array('must' => 1,
                              'match' => MATCH_INTEGER),
                        'y' => Array('must' => 1,
                              'match' => MATCH_INTEGER),
                        'z' => Array('must' => 0,
                              'default' => 1,
                              'match' => MATCH_INTEGER),
                        'url' => Array('must' => 0,
                              'match' => MATCH_STRING_URL),
                        'url_target' => Array('must' => 0,
                              'match' => MATCH_STRING_NO_SPACE),
                        'hover_url' => Array('must' => 0,
                                                      'match' => MATCH_STRING_URL)),
                  'template' => Array('type' => Array('must' => 0,
                              'match' => MATCH_OBJECTTYPE),
                        'name' => Array('must' => 1,
                              'match' => MATCH_STRING_NO_SPACE)));
            
            
            if (DEBUG&&DEBUGLEVEL&1) debug('End method GlobalMapCfg::GlobalMapCfg()');
      }


Generated by  Doxygen 1.6.0   Back to index