mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c96d891c2c
commit
6425dd7237
@ -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".
|
||||
|
Loading…
Reference in New Issue
Block a user