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 NTextInput

Single line text input control.

NObject
Extended by NComponent implements IComponent
Extended by NFormControl implements IFormControl
Extended by NTextBase
Extended by NTextInput
Package: Nette\Forms
Author: David Grudl
Located at Forms/Controls/TextInput.php
Methods summary
public
# __construct( string $label = NULL, string $cols = NULL, integer $maxLength = NULL )

Parameters

$label
string
control name
$cols
string
label
$maxLength
integer
width of the control
public string
# sanitize( $value )

Filter: removes unnecessary whitespace and shortens value to control's max length.

Filter: removes unnecessary whitespace and shortens value to control's max length.

Returns

string
public NTextInput
# setPasswordMode( boolean $mode = TRUE )

Sets or unsets the password mode.

Sets or unsets the password mode.

Parameters

$mode
boolean

Returns

NTextInput
provides a fluent interface
public NHtml
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

NHtml
public
# notifyRule( NRule $rule )

New rule or condition notification callback.

New rule or condition notification callback.

Parameters

$rule
NRule
Methods inherited from NTextBase
addFilter(), filterFloat(), getEmptyValue(), getValue(), setEmptyValue(), setValue(), validateEmail(), validateFloat(), validateInteger(), validateLength(), validateMaxLength(), validateMinLength(), validateRange(), validateRegexp(), validateUrl()
Methods inherited from NFormControl
addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), getControlPrototype(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getLabel(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), hasErrors(), isDisabled(), loadHttpData(), 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 inherited from NTextBase
$emptyValue, $filters
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