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
This commit is contained in:
Ingo Schommer 2008-12-05 02:45:56 +00:00 committed by Sam Minnee
parent c96d891c2c
commit 6425dd7237

View File

@ -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".