silverstripe-framework/Forms/ResetFormAction.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

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';
}
}