/** * 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(); }
/** * 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();*/ }
/** * 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(); }
/** * 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; } } }
/** * 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(); }
/** * Constructor. * * @param array $options */ public function __construct($options = []) { parent::__construct($options); }
public function __construct(Koch\Config $config) { parent::__construct($config); }
public function __construct(Koch\Config $config) { parent::__construct($config); // instantiate the render engine $this->xslt = new \XSLTProcessor(); }
/** * Constructor. * * @param array $options */ public function __construct($options = []) { parent::__construct($config); $this->initializeEngine(); $this->configureEngine(); }