Class FormContainer (namespace Nette\Forms)
Container for form controls.
Object | --Component | --ComponentContainer | --FormContainer
Implements interfaces:
Direct Known Sub-classes:
Public Method Summary | |
---|---|
Button |
addButton
(string $name, string $caption)
Adds push buttons with no default behavior.
|
Checkbox |
addCheckbox
(string $name, string $caption)
Adds check box control to the form.
|
void |
addComponent
($component, string $name, [string $insertBefore =
NULL ])
Adds the specified component to the IComponentContainer.
|
FormContainer |
addContainer
(string $name)
Adds naming container to the form.
|
FileUpload |
addFile
(string $name, string $label)
Adds control that allows the user to upload files.
|
HiddenField |
addHidden
(string $name)
Adds hidden form control used to store a non-displayed value.
|
ImageButton |
Adds graphical button used to submit form.
|
MultiSelectBox |
Adds select box control that allows multiple item selection.
|
TextInput |
Adds single-line text input control used for sensitive input such as passwords.
|
RadioList |
addRadioList
(string $name, string $label, [$items =
NULL ])
Adds set of radio button controls to the form.
|
RepeaterControl |
addRepeater
(string $name)
Adds control that repeats a specified prototype for each item in the list.
|
SelectBox |
Adds select box control that allows single item selection.
|
SubmitButton |
addSubmit
(string $name, string $caption)
Adds button used to submit form.
|
TextInput |
Adds single-line text input control to the form.
|
TextArea |
Adds multi-line text input control to the form.
|
ArrayIterator |
getControls
()
Iterates over all form controls.
|
Form |
getForm
([bool $need =
TRUE ])
Returns form.
|
bool |
offsetExists
(string $name)
Does component specified by name exists?
|
IComponent |
offsetGet
(string $name)
Returns component specified by name. Throws exception if component doesn't exist.
|
void. |
offsetSet
(string $name, IComponent $component)
Adds the component to the container.
|
void |
offsetUnset
(string $name)
Removes component from the container. Throws exception if component doesn't exist.
|
void |
|
Methods Inherited From ComponentContainer |
---|
addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent(), __clone() |
Methods Inherited From Component |
---|
__construct(), attached(), detached(), getName(), getParent(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
protected FormGroup | $currentGroup |
|
line 39 |
Method Details | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 247 addButtonpublic Button addButton (string $name, string $caption) Adds push buttons with no default behavior.
|
||||||||||||||||||||||||
line 177 addCheckboxpublic Checkbox addCheckbox (string $name, string $caption) Adds check box control to the form.
|
||||||||||||||||||||||||
line 61 addComponentpublic void addComponent ($component, string $name, [string $insertBefore = Adds the specified component to the IComponentContainer.
|
||||||||||||||||||||||||
line 273 addContainerpublic FormContainer addContainer (string $name) Adds naming container to the form.
|
||||||||||||||||||||||||
line 152 addFilepublic FileUpload addFile (string $name, string $label) Adds control that allows the user to upload files.
|
||||||||||||||||||||||||
line 164 addHiddenpublic HiddenField addHidden (string $name) Adds hidden form control used to store a non-displayed value.
|
||||||||||||||||||||||||
line 261 addImagepublic ImageButton addImage (string $name, [string $src = Adds graphical button used to submit form.
|
||||||||||||||||||||||||
line 221 addMultiSelectpublic MultiSelectBox addMultiSelect (string $name, string $label, [$items = Adds select box control that allows multiple item selection.
|
||||||||||||||||||||||||
line 121 addPasswordpublic TextInput addPassword (string $name, string $label, [int $cols = Adds single-line text input control used for sensitive input such as passwords.
|
||||||||||||||||||||||||
line 191 addRadioListpublic RadioList addRadioList (string $name, string $label, [$items = Adds set of radio button controls to the form.
|
||||||||||||||||||||||||
line 287 addRepeaterpublic RepeaterControl addRepeater (string $name) Adds control that repeats a specified prototype for each item in the list.
|
||||||||||||||||||||||||
line 206 addSelectpublic SelectBox addSelect (string $name, string $label, [$items = Adds select box control that allows single item selection.
|
||||||||||||||||||||||||
line 234 addSubmitpublic SubmitButton addSubmit (string $name, string $caption) Adds button used to submit form.
|
||||||||||||||||||||||||
line 106 addTextpublic TextInput addText (string $name, string $label, [int $cols = Adds single-line text input control to the form.
|
||||||||||||||||||||||||
line 139 addTextAreapublic TextArea addTextArea (string $name, string $label, [int $cols = Adds multi-line text input control to the form.
|
||||||||||||||||||||||||
line 75 getControlspublic ArrayIterator getControls () Iterates over all form controls.
|
||||||||||||||||||||||||
line 87 getFormpublic Form getForm ([bool $need = Returns form. Overridden in child classes as:
|
||||||||||||||||||||||||
line 329 offsetExistspublic bool offsetExists (string $name) Does component specified by name exists? Implementation of:
ArrayAccess::offsetExists
|
||||||||||||||||||||||||
line 317 offsetGetpublic IComponent offsetGet (string $name) Returns component specified by name. Throws exception if component doesn't exist. Implementation of:
ArrayAccess::offsetGet
|
||||||||||||||||||||||||
line 304 offsetSetpublic void. offsetSet (string $name, IComponent $component) Adds the component to the container. Implementation of:
ArrayAccess::offsetSet
|
||||||||||||||||||||||||
line 341 offsetUnsetpublic void offsetUnset (string $name) Removes component from the container. Throws exception if component doesn't exist. Implementation of:
ArrayAccess::offsetUnset
|
||||||||||||||||||||||||
line 46 setCurrentGrouppublic void setCurrentGroup ([FormGroup $group =
|