Source for file FormContainer.php
Documentation is available at FormContainer.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see http://nettephp.com
- 12: *
- 18: */
- 28: /**
- 29: * Container for form controls.
- 30: *
- 34: *
- 39: */
- 41: {
- 50: /********************* data exchange ****************d*g**/
- 54: /**
- 55: * Fill-in with default values.
- 59: */
- 61: {
- 64: }
- 66: }
- 70: /**
- 71: * Fill-in with values.
- 75: */
- 77: {
- 83: }
- 91: }
- 93: if ((is_array($sub->cursor) || $sub->cursor instanceof ArrayAccess) && array_key_exists($name, $sub->cursor)) {
- 98: }
- 99: }
- 106: }
- 107: }
- 108: }
- 110: }
- 114: /**
- 115: * Returns the values submitted by the form.
- 117: */
- 119: {
- 127: }
- 128: if ($control instanceof IFormControl && !$control->isDisabled() && !($control instanceof ISubmitterControl)) {
- 130: }
- 134: }
- 135: }
- 137: }
- 141: /********************* validation ****************d*g**/
- 145: /**
- 146: * Is form valid?
- 148: */
- 150: {
- 153: }
- 155: }
- 159: /**
- 160: * Performs the server side validation.
- 162: */
- 164: {
- 169: }
- 170: }
- 171: }
- 175: /********************* form building ****************d*g**/
- 179: /**
- 182: */
- 184: {
- 187: }
- 191: /**
- 192: * Adds the specified component to the IComponentContainer.
- 198: */
- 200: {
- 204: }
- 205: }
- 209: /**
- 210: * Iterates over all form controls.
- 212: */
- 214: {
- 216: }
- 220: /**
- 221: * Returns form.
- 224: */
- 226: {
- 228: }
- 232: /********************* control factories ****************d*g**/
- 236: /**
- 237: * Adds single-line text input control to the form.
- 243: */
- 245: {
- 247: }
- 251: /**
- 252: * Adds single-line text input control used for sensitive input such as passwords.
- 258: */
- 260: {
- 265: }
- 269: /**
- 270: * Adds multi-line text input control to the form.
- 276: */
- 278: {
- 280: }
- 284: /**
- 285: * Adds control that allows the user to upload files.
- 289: */
- 291: {
- 293: }
- 297: /**
- 298: * Adds hidden form control used to store a non-displayed value.
- 301: */
- 303: {
- 305: }
- 309: /**
- 310: * Adds check box control to the form.
- 314: */
- 316: {
- 318: }
- 322: /**
- 323: * Adds set of radio button controls to the form.
- 328: */
- 330: {
- 332: }
- 336: /**
- 337: * Adds select box control that allows single item selection.
- 343: */
- 345: {
- 351: /**
- 352: * Adds select box control that allows multiple item selection.
- 358: */
- 360: {
- 366: /**
- 367: * Adds button used to submit form.
- 371: */
- 373: {
- 375: }
- 379: /**
- 380: * Adds push buttons with no default behavior.
- 384: */
- 386: {
- 388: }
- 392: /**
- 393: * Adds graphical button used to submit form.
- 398: */
- 400: {
- 402: }
- 406: /**
- 407: * Adds naming container to the form.
- 410: */
- 412: {
- 416: }
- 420: /**
- 421: * Adds control that repeats a specified prototype for each item in the list.
- 424: */
- 426: {
- 428: }
- 432: /********************* interface \ArrayAccess ****************d*g**/
- 436: /**
- 437: * Adds the component to the container.
- 441: */
- 443: {
- 445: }
- 449: /**
- 450: * Returns component specified by name. Throws exception if component doesn't exist.
- 454: */
- 456: {
- 458: }
- 462: /**
- 463: * Does component specified by name exists?
- 466: */
- 468: {
- 470: }
- 474: /**
- 475: * Removes component from the container. Throws exception if component doesn't exist.
- 478: */
- 480: {
- 484: }
- 485: }
- 487: }