1 <?php
2 /**
3 * DeleteInput.php
4 *
5 * @author Elvyrra SAS
6 * @license http://rem.mit-license.org/ MIT
7 */
8
9 namespace Hawk;
10
11 /**
12 * This class describes the "delete" inputs. Delete input are submit inputs used to delete the current edited data in the database
13 *
14 * @package Form\Input
15 */
16 class DeleteInput extends ButtonInput{
17 const TYPE = "submit";
18 const INDEPENDANT = true;
19
20 /**
21 * Display the input
22 *
23 * @return string The HTML result of the input displaying
24 */
25 public function display(){
26 $this->class .= " btn-danger input-delete ";
27 $this->icon = "times";
28 $this->type = "submit";
29
30 return parent::display();
31 }
32 }
33