/** * The constructor of this class * * @param array $config */ public function __construct($config = array()) { // initialize the cache if this did not happen before if (self::$templateCache == null) { self::$templateCache = array(); } if (array_key_exists('site_template', $config)) { $this->_site_template = $config['site_template']; } else { $this->_site_template = null; } parent::__construct($config); }