/** * Constructor * */ public function __construct($params, $bBackend = FALSE) { $this->params = $params; $this->bBackend = $bBackend; $this->sLnEnd = JchPlatformUtility::lnEnd(); $this->sTab = JchPlatformUtility::tab(); self::$bLogErrors = $this->params->get('jsmin_log', 0) ? TRUE : FALSE; }
/** * Constructor * * @param JRegistry object $params Plugin parameters * @param string $sHtml Page HMTL */ public function __construct($oParams, $sHtml, $oFileRetriever) { $this->params = $oParams; $this->sHtml = $sHtml; $this->oFileRetriever = $oFileRetriever; $this->sLnEnd = JchPlatformUtility::lnEnd(); $this->sTab = JchPlatformUtility::tab(); if (!defined('JCH_TEST_MODE')) { $this->sFileHash = serialize($this->params->getOptions()) . JCH_VERSION; } $this->parseHtml(); }
/** * Constructor * * @param JRegistry object $params Plugin parameters * @param string $sHtml Page HMTL */ public function __construct($oParams, $sHtml, $oFileRetriever) { // JCH_DEBUG ? JchPlatformProfiler::mark('beforeConstructParser - plgSystem (JCH Optimize)') : null; $this->params = $oParams; $this->sHtml = $sHtml; $this->oFileRetriever = $oFileRetriever; $this->sLnEnd = JchPlatformUtility::lnEnd(); $this->sTab = JchPlatformUtility::tab(); if (!defined('JCH_TEST_MODE')) { $this->sFileHash = serialize($this->params) . JCH_VERSION; } // JCH_DEBUG ? JchPlatformProfiler::mark('afterConstructParser - plgSystem (JCH Optimize)') : null; $this->parseHtml(); }