Methods summary
public
Nette\Forms\Container
|
#
setDefaults( array|Traversable $values, boolean $erase = FALSE )
Fill-in with default values.
Fill-in with default values.
Parameters
- $values
array|Traversable values used to fill the form
- $erase
boolean erase other default values?
Returns
|
public
Nette\Forms\Container
|
#
setValues( array|Traversable $values, boolean $erase = FALSE )
Fill-in with values.
Parameters
- $values
array|Traversable values used to fill the form
- $erase
boolean erase other controls?
Returns
|
public
Nette\Utils\ArrayHash |array
|
#
getValues( boolean $asArray = FALSE )
Returns the values submitted by the form.
Returns the values submitted by the form.
Parameters
- $asArray
boolean return values as an array?
Returns
|
public
boolean
|
#
isValid( )
Is form valid?
Returns
boolean
|
public
|
#
validate( array $controls = NULL )
Performs the server side validation.
Performs the server side validation.
Parameters
|
public
array
|
#
getErrors( )
Returns all validation errors.
Returns all validation errors.
Returns
array
|
public
Nette\Forms\Container
|
|
public
Nette\Forms\ControlGroup
|
|
public
Nette\Forms\Container
|
#
addComponent( Nette\ComponentModel\IComponent $component, string $name, string $insertBefore = NULL )
Adds the specified component to the IContainer.
Adds the specified component to the IContainer.
Parameters
Returns
Throws
Overrides
|
public
ArrayIterator
|
#
getControls( )
Iterates over all form controls.
Iterates over all form controls.
Returns
|
public
Nette\Forms\Form
|
#
getForm( boolean $need = TRUE )
Returns form.
Parameters
- $need
boolean throw exception if form doesn't exist?
Returns
|
public
Nette\Forms\Controls\TextInput
|
#
addText( string $name, string $label = NULL, integer $cols = NULL, integer $maxLength = NULL )
Adds single-line text input control to the form.
Adds single-line text input control to the form.
Parameters
- $name
string control name
- $label
string label
- $cols
integer width of the control (deprecated)
- $maxLength
integer maximum number of characters the user may enter
Returns
|
public
Nette\Forms\Controls\TextInput
|
#
addPassword( string $name, string $label = NULL, integer $cols = NULL, integer $maxLength = NULL )
Adds single-line text input control used for sensitive input such as
passwords.
Adds single-line text input control used for sensitive input such as
passwords.
Parameters
- $name
string control name
- $label
string label
- $cols
integer width of the control (deprecated)
- $maxLength
integer maximum number of characters the user may enter
Returns
|
public
Nette\Forms\Controls\TextArea
|
#
addTextArea( string $name, string $label = NULL, integer $cols = NULL, integer $rows = NULL )
Adds multi-line text input control to the form.
Adds multi-line text input control to the form.
Parameters
- $name
string control name
- $label
string label
- $cols
integer width of the control
- $rows
integer height of the control in text lines
Returns
|
public
Nette\Forms\Controls\UploadControl
|
#
addUpload( string $name, string $label = NULL, boolean $multiple = FALSE )
Adds control that allows the user to upload files.
Adds control that allows the user to upload files.
Parameters
- $name
string control name
- $label
string label
- $multiple
boolean allows to upload multiple files
Returns
|
public
Nette\Forms\Controls\UploadControl
|
#
addMultiUpload( string $name, string $label = NULL )
Adds control that allows the user to upload multiple files.
Adds control that allows the user to upload multiple files.
Parameters
- $name
string control name
- $label
string label
Returns
|
public
Nette\Forms\Controls\HiddenField
|
#
addHidden( string $name, mixed $default = NULL )
Adds hidden form control used to store a non-displayed value.
Adds hidden form control used to store a non-displayed value.
Parameters
- $name
string control name
- $default
mixed default value
Returns
|
public
Nette\Forms\Controls\Checkbox
|
#
addCheckbox( string $name, string $caption = NULL )
Adds check box control to the form.
Adds check box control to the form.
Parameters
- $name
string control name
- $caption
string caption
Returns
|
public
Nette\Forms\Controls\RadioList
|
#
addRadioList( string $name, string $label = NULL, array $items = NULL )
Adds set of radio button controls to the form.
Adds set of radio button controls to the form.
Parameters
- $name
string control name
- $label
string label
- $items
array options from which to choose
Returns
|
public
Nette\Forms\Controls\CheckboxList
|
#
addCheckboxList( $name, $label = NULL, array $items = NULL )
Adds set of checkbox controls to the form.
Adds set of checkbox controls to the form.
Returns
|
public
Nette\Forms\Controls\SelectBox
|
#
addSelect( string $name, string $label = NULL, array $items = NULL, integer $size = NULL )
Adds select box control that allows single item selection.
Adds select box control that allows single item selection.
Parameters
- $name
string control name
- $label
string label
- $items
array items from which to choose
- $size
integer number of rows that should be visible
Returns
|
public
Nette\Forms\Controls\MultiSelectBox
|
#
addMultiSelect( string $name, string $label = NULL, array $items = NULL, integer $size = NULL )
Adds select box control that allows multiple item selection.
Adds select box control that allows multiple item selection.
Parameters
- $name
string control name
- $label
string label
- $items
array options from which to choose
- $size
integer number of rows that should be visible
Returns
|
public
Nette\Forms\Controls\SubmitButton
|
#
addSubmit( string $name, string $caption = NULL )
Adds button used to submit form.
Adds button used to submit form.
Parameters
- $name
string control name
- $caption
string caption
Returns
|
public
Nette\Forms\Controls\Button
|
#
addButton( string $name, string $caption = NULL )
Adds push buttons with no default behavior.
Adds push buttons with no default behavior.
Parameters
- $name
string control name
- $caption
string caption
Returns
|
public
Nette\Forms\Controls\ImageButton
|
#
addImage( string $name, string $src = NULL, string $alt = NULL )
Adds graphical button used to submit form.
Adds graphical button used to submit form.
Parameters
- $name
string control name
- $src
string URI of the image
- $alt
string alternate text for the image
Returns
|
public
Nette\Forms\Container
|
#
addContainer( string $name )
Adds naming container to the form.
Adds naming container to the form.
Parameters
Returns
|
public
|
|
public
Nette\ComponentModel\IComponent
|
#
offsetGet( string $name )
Returns component specified by name. Throws exception if component doesn't
exist.
Returns component specified by name. Throws exception if component doesn't
exist.
Parameters
- $name
string component name
Returns
Throws
Implementation of
|
public
boolean
|
#
offsetExists( string $name )
Does component specified by name exists?
Does component specified by name exists?
Parameters
- $name
string component name
Returns
boolean
Implementation of
|
public
|
#
offsetUnset( string $name )
Removes component from the container.
Removes component from the container.
Parameters
- $name
string component name
Implementation of
|
public
|
#
__clone( )
Prevents cloning.
Overrides
|