mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-28 13:36:12 +02:00
22 lines
366 B
PHP
22 lines
366 B
PHP
<?php
|
|
/**
|
|
* Action that clears all fields on a form.
|
|
* Inserts an input tag with type=reset.
|
|
* @package forms
|
|
* @subpackage actions
|
|
*/
|
|
class ResetFormAction extends FormAction {
|
|
|
|
public function getAttributes() {
|
|
return array_merge(
|
|
parent::getAttributes(),
|
|
array('type' => 'reset')
|
|
);
|
|
}
|
|
|
|
public function Type() {
|
|
return 'resetformaction';
|
|
}
|
|
|
|
}
|