示例#1
0
 /**
  * RenderEngineConstructor
  *
  * parent::__construct does the following:
  * 1) Apply instances of Koch\Config to the RenderBase
  * 2) Initialize the RenderEngine via parent class constructor call = self::initializeEngine()
  * 3) Configure the RenderEngine with it's specific settings = self::configureEngine();
  */
 public function __construct(\Koch\Config\Config $config)
 {
     parent::__construct($config);
     $this->initializeEngine();
     $this->configureEngine();
     // debug display of all smarty related directories
     // $this->renderer->testInstall();
 }
示例#2
0
文件: Pdf.php 项目: ksst/kf
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct($options = [])
 {
     parent::__construct($options);
     // composer autoload not working, due to missing autoload section in mpdfs composer.json
     /*include_once VENDOR_PATH . '/mpdf/mpdf/mpdf.php';
       $mpdf = new \mPDF();
       $mpdf->WriteHTML('<p>Your first taste of creating PDF from HTML</p>');
       $mpdf->Output();*/
 }
示例#3
0
文件: Xslt.php 项目: ksst/kf
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct($options = [])
 {
     if (extension_loaded('libxml') === false or extension_loaded('xsl') === false) {
         throw new Exception('The PHP extension libxml is not loaded. You may enable it in "php.ini" (extension=php_xsl.dll)!');
     }
     parent::__construct($options);
     // instantiate the render engine
     // @link http://php.net/manual/en/class.xsltprocessor.php
     $this->renderer = new \XSLTProcessor();
 }
示例#4
0
 /**
  * Getter for the "theme_info.xml" file of the currently activated theme.
  *
  * @return string Filepath to "theme_info.xml" of the currently activated theme.
  */
 public function getCurrentThemeInfoFile()
 {
     // get array for frontend or backend theme
     $themepaths = AbstractRenderer::getThemeTemplatePaths();
     foreach ($themepaths as $themepath) {
         $theme_info_file = $themepath . DIRECTORY_SEPARATOR . 'theme_info.xml';
         if (is_file($theme_info_file_path)) {
             return $theme_info_file;
         }
     }
 }
示例#5
0
文件: Smarty.php 项目: ksst/kf
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct($options = [])
 {
     // fallback config
     $this->options = ['compile_dir' => APPLICATION_CACHE_PATH . 'tpl_compile/', 'cache_dir' => APPLICATION_CACHE_PATH . 'tpl_cache/', 'config_dir' => '', 'debug_tpl' => '', 'cache_enabled' => 0, 'cache_lifetime' => 0];
     // set incoming config
     parent::__construct($options);
     $this->initializeEngine();
     $this->configureEngine();
     // debug display of all smarty related directories
     //$this->renderer->testInstall();
 }
示例#6
0
文件: Php.php 项目: ksst/kf
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct($options = [])
 {
     parent::__construct($options);
 }
示例#7
0
 public function __construct(Koch\Config $config)
 {
     parent::__construct($config);
 }
示例#8
0
 public function __construct(Koch\Config $config)
 {
     parent::__construct($config);
     // instantiate the render engine
     $this->xslt = new \XSLTProcessor();
 }
示例#9
0
文件: Phptal.php 项目: ksst/kf
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct($options = [])
 {
     parent::__construct($config);
     $this->initializeEngine();
     $this->configureEngine();
 }