Blame view

framework/forms/ResetFormAction.php 366 Bytes
0084d336   Administrator   Importers CRUD
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';
  	}
  
  }