예제 #1
0
파일: Template.php 프로젝트: rk4an/centreon
 /**
  * 
  * @param string $newTemplateFile
  * @param boolean $enableCaching
  */
 public function __construct($newTemplateFile = '', $enableCaching = 0)
 {
     $this->templateFile = $newTemplateFile;
     $this->caching = $enableCaching;
     $this->cssResources = array();
     $this->jsTopResources = array();
     $this->jsBottomResources = array();
     $this->buildExclusionList();
     $this->customJs = "";
     parent::__construct();
     $this->initConfig();
     $menu = new Menu();
     $this->assign('appMenu', $menu->getMenu());
 }
예제 #2
0
파일: MenuTest.php 프로젝트: rk4an/centreon
 public function testGetMenuJsonWithUnknownId()
 {
     $menu = new Menu();
     $this->assertEquals('[]', $menu->getMenuJson(9999));
 }