Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • Button
  • Checkbox
  • ConventionalRenderer
  • FileUpload
  • Form
  • FormContainer
  • FormControl
  • FormGroup
  • HiddenField
  • ImageButton
  • InstantClientScript
  • MultiSelectBox
  • RadioList
  • Rule
  • Rules
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput

Interfaces

  • IFormControl
  • IFormRenderer
  • INamingContainer
  • ISubmitterControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class SubmitButton

Submittable button control.

Nette\Object
Extended by Nette\Component implements Nette\IComponent
Extended by Nette\Forms\FormControl implements Nette\Forms\IFormControl
Extended by Nette\Forms\Button
Extended by Nette\Forms\SubmitButton implements Nette\Forms\ISubmitterControl

Direct known subclasses

Nette\Forms\ImageButton
Namespace: Nette\Forms
Author: David Grudl
Located at Forms/Controls/SubmitButton.php
Methods summary
public
# __construct( string $caption = NULL )

Parameters

$caption
string
caption
public Nette\Forms\SubmitButton
# setValue( boolean $value )

Sets 'pressed' indicator.

Sets 'pressed' indicator.

Parameters

$value
boolean

Returns

Nette\Forms\SubmitButton
provides a fluent interface

Implementation of

Nette\Forms\IFormControl::setValue
public boolean
# isSubmittedBy( )

Tells if the form was submitted by this button.

Tells if the form was submitted by this button.

Returns

boolean

Implementation of

Nette\Forms\ISubmitterControl::isSubmittedBy
public Nette\Forms\SubmitButton
# setValidationScope( mixed $scope )

Sets the validation scope. Clicking the button validates only the controls within the specified scope.

Sets the validation scope. Clicking the button validates only the controls within the specified scope.

Parameters

$scope
mixed

Returns

Nette\Forms\SubmitButton
provides a fluent interface
final public mixed
# getValidationScope( )

Gets the validation scope.

Gets the validation scope.

Returns

mixed

Implementation of

Nette\Forms\ISubmitterControl::getValidationScope
public
# click( )

Fires click event.

Fires click event.

public static boolean
# validateSubmitted( Nette\Forms\ISubmitterControl $control )

Submitted validator: has been button pressed?

Submitted validator: has been button pressed?

Parameters

$control
Nette\Forms\ISubmitterControl

Returns

boolean
Methods inherited from Nette\Forms\Button
getControl(), getLabel()
Methods inherited from Nette\Forms\FormControl
addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), getControlPrototype(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), loadHttpData(), notifyRule(), setDefaultValue(), setDisabled(), setHtmlId(), setOption(), setTranslator(), translate(), validateEqual(), validateFilled(), validateValid()
Methods inherited from Nette\Component
__clone(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from Nette\IComponent
NAME_SEPARATOR
Properties summary
public array $onClick
#

of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated

of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated

public array $onInvalidClick
#

of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated

of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated

Properties inherited from Nette\Forms\FormControl
$caption, $control, $idMask, $label, $value
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0