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

45 lines
871 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\ORM\DataObject;
class TestObject extends DataObject implements TestOnly
{
private static $table_name = 'SSViewerTest_Object';
2016-10-14 03:30:05 +02:00
public $number = null;
2016-10-14 03:30:05 +02:00
private static $casting = array(
'Link' => 'Text',
);
2016-10-14 03:30:05 +02:00
public function __construct($number = null)
{
parent::__construct();
$this->number = $number;
}
2016-10-14 03:30:05 +02:00
public function Number()
{
return $this->number;
}
2016-10-14 03:30:05 +02:00
public function absoluteBaseURL()
{
return "testLocalFunctionPriorityCalled";
}
2016-10-14 03:30:05 +02:00
public function lotsOfArguments11($a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k)
{
return $a . $b . $c . $d . $e . $f . $g . $h . $i . $j . $k;
}
2016-10-14 03:30:05 +02:00
public function Link()
{
return 'some/url.html';
}
2016-10-14 03:30:05 +02:00
}