1 <?php
2 /**
3 * ColorInput.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 color inputs
13 *
14 * @package Form\Input
15 */
16 class ColorInput extends FormInput{
17 const TYPE = "color";
18
19 /**
20 * Display the color input
21 *
22 * @return string the displayed HTML
23 */
24 public function display(){
25 $this->type = "text";
26
27 return parent::display();
28 }
29 }