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

GlobalPage::GlobalPage ( &$  MAINCFG,
givenProperties = Array() 
) [inherited]

Class Constructor

Parameters:
GlobalMainCfg $MAINCFG
Array $prop Array('name'=>'myform','id'=>'myform','method'=>'POST','action'=>'','onSubmit'=>'','cols'=>'2','enctype'=>''
Author:
Lars Michelsen <lars@vertical-visions.de>

Definition at line 32 of file GlobalPage.php.

References GlobalPage::checkPreflight(), and GlobalPage::getUser().

                                                              {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method GlobalPage::GlobalPage($MAINCFG,Array(...))');
            // Define default Properties here
            $defaultProperties = Array('title'=>'NagVis Page',
                                                      'cssIncludes'=>Array('../nagvis/includes/css/style.css'),
                                                      'jsIncludes'=>Array(),
                                                      'extHeader'=>Array(),
                                                      'allowedUsers'=>Array('EVERYONE'),
                                                      'languageRoot'=>'global:global');
            $prop = array_merge($defaultProperties,$givenProperties);
            
            $this->body = Array();
            
            $this->MAINCFG = &$MAINCFG;
            $this->title = $prop['title'];
            $this->cssIncludes = $prop['cssIncludes'];
            $this->jsIncludes = $prop['jsIncludes'];
            $this->extHeader = array_merge(Array('<meta http-equiv="Content-Type" content="text/html;charset=utf-8">',
                                                                  '<title>'.$prop['title'].'</title>'),$prop['extHeader']);
            $this->allowedUsers = $prop['allowedUsers'];
            $this->languageRoot = $prop['languageRoot'];
            
            $this->user = $this->getUser();
            $this->MAINCFG->setRuntimeValue('user',$this->user);
            
            $this->checkPreflight();
            if (DEBUG&&DEBUGLEVEL&1) debug('End method GlobalPage::GlobalPage()');
      }


Generated by  Doxygen 1.6.0   Back to index