mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
23 lines
357 B
PHP
23 lines
357 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms;
|
|
|
|
/**
|
|
* Action that clears all fields on a form.
|
|
* Inserts an input tag with type=reset.
|
|
*/
|
|
class ResetFormAction extends FormAction {
|
|
|
|
public function getAttributes() {
|
|
return array_merge(
|
|
parent::getAttributes(),
|
|
array('type' => 'reset')
|
|
);
|
|
}
|
|
|
|
public function Type() {
|
|
return 'resetformaction';
|
|
}
|
|
|
|
}
|