Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • Button
  • Checkbox
  • FormControl
  • HiddenField
  • ImageButton
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Package
  • Class
  • Tree

Class SubmitButton

Submittable button control.

Object
Extended by Component implements IComponent
Extended by FormControl implements IFormControl
Extended by Button
Extended by SubmitButton implements ISubmitterControl

Direct known subclasses

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

Parameters

$caption
string
caption

Overrides

Button::__construct
public SubmitButton
# setValue( boolean $value )

Sets 'pressed' indicator.

Sets 'pressed' indicator.

Parameters

$value
boolean

Returns

SubmitButton
provides a fluent interface

Overrides

FormControl::setValue

Implementation of

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

ISubmitterControl::isSubmittedBy
public 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

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

Gets the validation scope.

Gets the validation scope.

Returns

mixed

Implementation of

ISubmitterControl::getValidationScope
public
# click( )

Fires click event.

Fires click event.

public static boolean
# validateSubmitted( ISubmitterControl $control )

Submitted validator: has been button pressed?

Submitted validator: has been button pressed?

Parameters

$control
ISubmitterControl

Returns

boolean
Methods inherited from Button
getControl(), getLabel()
Methods inherited from FormControl
addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), getControlPrototype(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), isFilled(), isRequired(), loadHttpData(), setAttribute(), setDefaultValue(), setDisabled(), setHtmlId(), setOption(), setRequired(), setTranslator(), translate(), validateEqual(), validateFilled(), validateValid()
Methods inherited from Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from IComponent
setParent()
Constants inherited from 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 FormControl
$caption, $control, $idMask, $label, $value
Nette Framework 2.0.1 (for PHP 5.2, un-prefixed) API API documentation generated by ApiGen 2.7.0