Packages

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

Classes

  • NButton
  • NCheckbox
  • NConventionalRenderer
  • NFileUpload
  • NForm
  • NFormContainer
  • NFormGroup
  • NHiddenField
  • NImageButton
  • NInstantClientScript
  • NMultiSelectBox
  • NRadioList
  • NRule
  • NRules
  • NSelectBox
  • NSubmitButton
  • NTextArea
  • NTextBase
  • NTextInput

Interfaces

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

Class NSubmitButton

Submittable button control.

NObject
Extended by NComponent implements IComponent
Extended by NFormControl implements IFormControl
Extended by NButton
Extended by NSubmitButton implements ISubmitterControl

Direct known subclasses

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

Parameters

$caption
string
caption
public NSubmitButton
# setValue( boolean $value )

Sets 'pressed' indicator.

Sets 'pressed' indicator.

Parameters

$value
boolean

Returns

NSubmitButton
provides a fluent interface

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 NSubmitButton
# 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

NSubmitButton
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 NButton
getControl(), getLabel()
Methods inherited from NFormControl
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 NComponent
__clone(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
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 NFormControl
$caption, $control, $idMask, $label, $value
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0