mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
38 lines
737 B
PHP
38 lines
737 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests\DirectorTest;
|
|
|
|
use SilverStripe\Control\Controller;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class TestController extends Controller implements TestOnly
|
|
{
|
|
|
|
private static $allowed_actions = array(
|
|
'returnGetValue',
|
|
'returnPostValue',
|
|
'returnRequestValue',
|
|
'returnCookieValue',
|
|
);
|
|
|
|
public function returnGetValue($request)
|
|
{
|
|
return $_GET['somekey'];
|
|
}
|
|
|
|
public function returnPostValue($request)
|
|
{
|
|
return $_POST['somekey'];
|
|
}
|
|
|
|
public function returnRequestValue($request)
|
|
{
|
|
return $_REQUEST['somekey'];
|
|
}
|
|
|
|
public function returnCookieValue($request)
|
|
{
|
|
return $_COOKIE['somekey'];
|
|
}
|
|
}
|