/** * Implements singleton pattern * * @see HamlParser::__construct() * @param string Path to files * @param boolean/string Compile templates (can be path) * @return HamlParser */ protected static function getInstance($sPath = false, $bCompile = true) { if (is_null(self::$oInstance)) { self::$oInstance = new self($sPath, $bCompile, null, null, true); } return self::$oInstance; }