silverstripe-framework/tests/php/Forms/UploadFieldTest/TestController.php

27 lines
568 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Forms\Tests\UploadFieldTest;
use SilverStripe\Control\Controller;
use SilverStripe\Dev\TestOnly;
class TestController extends Controller implements TestOnly
{
public function Link($action = null)
{
return Controller::join_links('UploadFieldTest_Controller', $action, '/');
}
2016-10-14 03:30:05 +02:00
protected $template = 'BlankPage';
2016-10-14 03:30:05 +02:00
private static $allowed_actions = array('Form', 'index', 'submit');
2016-10-14 03:30:05 +02:00
public function Form()
{
/**
* @skipUpgrade
*/
return new UploadFieldTestForm($this, 'Form');
}
2016-10-14 03:30:05 +02:00
}