コード例 #1
0
ファイル: WebView.php プロジェクト: rashijani/dragonphp
 public function __construct($renderer = false, $currentModuleName = false, $currentControllerName = false)
 {
     $currentTemplateDir = $renderer->getCurrentTemplateDir();
     $this->_currentModuleName = $currentModuleName;
     $this->_currentControllerName = $currentControllerName;
     $this->_renderer = $renderer;
     $isGlobal = $renderer->getAttribute(IS_TEMPLATE_GLOBAL);
     if ($isGlobal == true) {
         // overide template directory to global
         $currentTemplateDir = BASE_APPLICATION_DIR . 'global_templates/';
     }
     $this->config(GLOBAL_TEMPLATE_DIR, $currentTemplateDir, DEFAULT_HEADER, DEFAULT_FOOTER);
     if (method_exists($this, 'setLogger')) {
         $this->setLogger();
     } else {
         self::$_logger = LoggerFactory::getInstance(get_class());
     }
 }
コード例 #2
0
 public function __construct($dbh)
 {
     parent::__construct($dbh, true, true, true, false, true, true);
 }