public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new MasterPage(); } $_title = ''; $_currentPage = ''; $_head = ''; $_content = array(); return self::$_instance; }