protected static function init($config) { self::$config = $config; self::$DOMHtml = DOMHtml::getInstance(); self::$htmlHeaders = HtmlHeaders::getInstance(); self::$base = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'public') . DIRECTORY_SEPARATOR; self::$path = self::$config['URIBasePath'] . self::$config['LazyLoadBasePath'] . self::$config['cacheId'] . DIRECTORY_SEPARATOR; }
private function organizeHeaderOrder() { $htmlHeaders = HtmlHeaders::getInstance(); if ($this->config['CssIntegrateInline']) { $this->replaceInline($htmlHeaders); } if ($this->config['CssIntegrate']) { $this->organizeCSS($htmlHeaders); } if ($this->config['JavascriptIntegrate']) { $this->organizeJS($htmlHeaders); } }
public function __construct($config) { $this->config = $config; $this->htmlHeaders = HtmlHeaders::getInstance(); $this->csss = $this->htmlHeaders->getCss(); }