Logo white

Administrator / test_1

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • test_1
  • framework
  • forms
  • ResetFormAction.php
  • first commit from local
    118a6488
    Administrator authored
    2015-11-13 11:07:18 +0200  
    Browse Code ยป
ResetFormAction.php 366 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?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';
	}

}