From 6425dd7237a14abdc98446e283440f36fbe8217f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 5 Dec 2008 02:45:56 +0000 Subject: [PATCH] ENHANCEMENT Added SSViewer::get_source_file_comments() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67502 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/SSViewer.php b/core/SSViewer.php index 9da762cbb..dfcce7cb8 100644 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -48,16 +48,29 @@ * @subpackage view */ class SSViewer extends Object { + + /** + * @var boolean $source_file_comments + */ protected static $source_file_comments = true; /** * Set whether HTML comments indicating the source .SS file used to render this page should be * included in the output. This is enabled by default + * + * @param boolean $val */ function set_source_file_comments($val) { self::$source_file_comments = $val; } + /** + * @return boolean + */ + function get_source_file_comments() { + return self::$source_file_comments; + } + /** * @var array $chosenTemplates Associative array for the different * template containers: "main" and "Layout".