blob: e94b681387194b5a3f437f1af8107ea010b56420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
namespace ipl\Html\FormElement;
use ipl\Html\Contract\FormSubmitElement;
class SubmitButtonElement extends ButtonElement implements FormSubmitElement
{
protected $defaultAttributes = ['type' => 'submit'];
protected $value = 'y';
public function setLabel($label)
{
return $this->setContent($label);
}
public function hasBeenPressed()
{
return (bool) $this->getValue();
}
public function isIgnored()
{
return true;
}
}
|