API Make default_cast Text and not HTMLText

This commit is contained in:
Hamish Friedlander 2013-03-12 10:42:02 +13:00 committed by Sam Minnee
parent d2650bbc44
commit 9bd6dd9ade
2 changed files with 4 additions and 4 deletions

View File

@ -1218,14 +1218,14 @@ class SSViewerTest_GlobalProvider implements TemplateGlobalProvider, TestOnly {
public static function get_template_global_variables() {
return array(
'SSViewerTest_GlobalHTMLFragment' => array('method' => 'get_html'),
'SSViewerTest_GlobalHTMLEscaped' => array('method' => 'get_html', 'casting' => 'Varchar'),
'SSViewerTest_GlobalHTMLFragment' => array('method' => 'get_html', 'casting' => 'HTMLText'),
'SSViewerTest_GlobalHTMLEscaped' => array('method' => 'get_html'),
'SSViewerTest_GlobalAutomatic',
'SSViewerTest_GlobalReferencedByString' => 'get_reference',
'SSViewerTest_GlobalReferencedInArray' => array('method' => 'get_reference'),
'SSViewerTest_GlobalThatTakesArguments' => array('method' => 'get_argmix')
'SSViewerTest_GlobalThatTakesArguments' => array('method' => 'get_argmix', 'casting' => 'HTMLText')
);
}

View File

@ -32,7 +32,7 @@ class ViewableData extends Object implements IteratorAggregate {
*
* @var string
*/
public static $default_cast = 'HTMLText';
public static $default_cast = 'Text';
/**
* @var array