silverstripe-framework/tests/php/View/SSViewerTest/TestViewableData.php

28 lines
557 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\View\Tests\SSViewerTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\View\ViewableData;
class TestViewableData extends ViewableData implements TestOnly
{
private static $default_cast = 'Text';
2016-10-14 03:30:05 +02:00
private static $casting = array(
'TextValue' => 'Text',
'HTMLValue' => 'HTMLFragment'
);
2016-10-14 03:30:05 +02:00
public function methodWithOneArgument($arg1)
{
return "arg1:{$arg1}";
}
2016-10-14 03:30:05 +02:00
public function methodWithTwoArguments($arg1, $arg2)
{
return "arg1:{$arg1},arg2:{$arg2}";
}
2016-10-14 03:30:05 +02:00
}