TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
download
app
Nette
Forms
Controls
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/download/app/Nette/Forms/Controls/SubmitButton.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ namespace Nette\Forms\Controls; use Nette; /** * Submittable button control. * * @author David Grudl * * @property-read bool $submittedBy * @property mixed $validationScope */ class SubmitButton extends Button implements Nette\Forms\ISubmitterControl { /** @var array of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated */ public $onClick; /** @var array of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated */ public $onInvalidClick; /** @var mixed */ private $validationScope = TRUE; /** * @param string caption */ public function __construct($caption = NULL) { parent::__construct($caption); $this->control->type = 'submit'; } /** * Sets 'pressed' indicator. * @param bool * @return SubmitButton provides a fluent interface */ public function setValue($value) { if ($this->value = $value !== NULL) { $this->getForm()->setSubmittedBy($this); } return $this; } /** * Tells if the form was submitted by this button. * @return bool */ public function isSubmittedBy() { return $this->getForm()->isSubmitted() === $this; } /** * Sets the validation scope. Clicking the button validates only the controls within the specified scope. * @param mixed * @return SubmitButton provides a fluent interface */ public function setValidationScope($scope) { // TODO: implement groups $this->validationScope = (bool) $scope; $this->control->formnovalidate = !$this->validationScope; return $this; } /** * Gets the validation scope. * @return mixed */ final public function getValidationScope() { return $this->validationScope; } /** * Fires click event. * @return void */ public function click() { $this->onClick($this); } /** * Submitted validator: has been button pressed? * @return bool */ public static function validateSubmitted(Nette\Forms\ISubmitterControl $control) { return $control->isSubmittedBy(); } }
Crotin
Name
Size
Permissions
Modified
User/Group
BaseControl.php
13409
0644
2015-08-08 18:27:55
Unknown/Unknown
MultiSelectBox.php
1907
0644
2015-08-08 18:27:55
Unknown/Unknown
Button.php
1019
0644
2015-08-08 18:27:54
Unknown/Unknown
HiddenField.php
1306
0644
2015-08-08 18:27:55
Unknown/Unknown
SelectBox.php
4831
0644
2015-08-08 18:27:55
Unknown/Unknown
ImageButton.php
1283
0644
2015-08-08 18:27:55
Unknown/Unknown
TextBase.php
5369
0644
2015-08-08 18:27:55
Unknown/Unknown
TextInput.php
2358
0644
2015-08-08 18:27:55
Unknown/Unknown
RadioList.php
3554
0644
2015-08-08 18:27:55
Unknown/Unknown
Checkbox.php
1045
0644
2015-08-08 18:27:56
Unknown/Unknown
UploadControl.php
2930
0644
2015-08-08 18:27:55
Unknown/Unknown
SubmitButton.php
2320
0644
2015-08-08 18:27:55
Unknown/Unknown
TextArea.php
1060
0644
2015-08-08 18:27:55
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin