]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/symfony/form/Symfony/Component/Form/SubmitButton.php
47d4be0e28b4c4e517345a12429e1238c18b955d
4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form
;
15 * A button that submits the form.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 class SubmitButton
extends Button
implements ClickableInterface
24 private $clicked = false;
29 public function isClicked()
31 return $this->clicked
;
35 * Submits data to the button.
37 * @param null|string $submittedData The data.
38 * @param Boolean $clearMissing Not used.
40 * @return SubmitButton The button instance
42 * @throws Exception\AlreadySubmittedException If the form has already been submitted.
44 public function submit($submittedData, $clearMissing = true)
46 parent
::submit($submittedData, $clearMissing);
48 $this->clicked
= null !== $submittedData;