/** * @param string $sel the template selector * @param string $outputtype the type of output (html, text..) By default, it takes the response type * @param boolean $trusted says if the template file is trusted or not */ function __construct($sel, $outputtype = '', $trusted = true) { if ($outputtype == '') { if (jApp::coord()->response) { $this->outputType = jApp::coord()->response->getFormatType(); } else { $this->outputType = jApp::coord()->request->defaultResponseType; } } else { $this->outputType = $outputtype; } $this->trusted = $trusted; $this->_compiler = 'jTplCompiler'; $this->_compilerPath = JELIX_LIB_PATH . 'tpl/jTplCompiler.class.php'; parent::__construct($sel); }
function __construct($sel, $driver, $isprofile = true) { if ($isprofile) { $p = jProfiles::get('jdb', $driver); if ($p['driver'] == 'pdo') { $this->driver = substr($p['dsn'], 0, strpos($p['dsn'], ':')); } else { $this->driver = $p['driver']; } } else { $this->driver = $driver; } $this->_compiler = 'jDaoCompiler'; $this->_compilerPath = JELIX_LIB_PATH . 'dao/jDaoCompiler.class.php'; parent::__construct($sel); }
function __construct($sel) { $this->_compiler = 'jFormsCompiler'; $this->_compilerPath = JELIX_LIB_PATH . 'forms/jFormsCompiler.class.php'; parent::__construct($sel); }
function __construct($sel, $driver, $dbType = null) { $this->driver = $driver; $this->dbType = $dbType ? $dbType : $driver; $this->_compiler = 'jDaoCompiler'; $this->_compilerPath = JELIX_LIB_PATH . 'dao/jDaoCompiler.class.php'; jSelectorModule::__construct($sel); }