/** * Constructor * * Instantiate the number input form element * * @param string $name * @param int $min * @param int $max * @param string $value * @param string $indent * @return \Pop\Form\Element\Input\Number */ public function __construct($name, $min, $max, $value = null, $indent = null) { parent::__construct($name, 'number', $value, $indent); $this->setAttributes(['min' => $min, 'max' => $max]); }
/** * Constructor * * Instantiate the email input form element * * @param string $name * @param string $value * @param string $indent * @return Time */ public function __construct($name, $value = null, $indent = null) { parent::__construct($name, 'time', $value, $indent); }
/** * Constructor * * Instantiate the email input form element * * @param string $name * @param string $value * @param string $indent * @return DateTimeLocal */ public function __construct($name, $value = null, $indent = null) { parent::__construct($name, 'datetime-local', $value, $indent); }