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: {
- 65: }
- 67: }
- 71: /**
- 72: * Fill-in with values.
- 76: */
- 78: {
- 84: }
- 92: }
- 94: if ((is_array($sub->cursor) || $sub->cursor instanceof ArrayAccess) && array_key_exists($name, $sub->cursor)) {
- 99: }
- 100: }
- 107: }
- 108: }
- 109: }
- 111: }
- 115: /**
- 116: * Returns the values submitted by the form.
- 118: */
- 120: {
- 128: }
- 129: if ($control instanceof IFormControl && !$control->isDisabled() && !($control instanceof ISubmitterControl)) {
- 131: }
- 135: }
- 136: }
- 138: }
- 142: /********************* validation ****************d*g**/
- 146: /**
- 147: * Is form valid?
- 149: */
- 151: {
- 154: }
- 156: }
- 160: /**
- 161: * Performs the server side validation.
- 163: */
- 165: {
- 170: }
- 171: }
- 172: }
- 176: /********************* form building ****************d*g**/
- 180: /**
- 183: */
- 185: {
- 188: }
- 192: /**
- 193: * Adds the specified component to the IComponentContainer.
- 199: */
- 201: {
- 205: }
- 206: }
- 210: /**
- 211: * Iterates over all form controls.
- 213: */
- 215: {
- 217: }
- 221: /**
- 222: * Returns form.
- 225: */
- 227: {
- 229: }
- 233: /********************* control factories ****************d*g**/
- 237: /**
- 238: * Adds single-line text input control to the form.
- 244: */
- 246: {
- 248: }
- 252: /**
- 253: * Adds single-line text input control used for sensitive input such as passwords.
- 259: */
- 261: {
- 266: }
- 270: /**
- 271: * Adds multi-line text input control to the form.
- 277: */
- 279: {
- 281: }
- 285: /**
- 286: * Adds control that allows the user to upload files.
- 290: */
- 292: {
- 294: }
- 298: /**
- 299: * Adds hidden form control used to store a non-displayed value.
- 302: */
- 304: {
- 306: }
- 310: /**
- 311: * Adds check box control to the form.
- 315: */
- 317: {
- 319: }
- 323: /**
- 324: * Adds set of radio button controls to the form.
- 329: */
- 331: {
- 333: }
- 337: /**
- 338: * Adds select box control that allows single item selection.
- 344: */
- 346: {
- 352: /**
- 353: * Adds select box control that allows multiple item selection.
- 359: */
- 361: {
- 367: /**
- 368: * Adds button used to submit form.
- 372: */
- 374: {
- 376: }
- 380: /**
- 381: * Adds push buttons with no default behavior.
- 385: */
- 387: {
- 389: }
- 393: /**
- 394: * Adds graphical button used to submit form.
- 399: */
- 401: {
- 403: }
- 407: /**
- 408: * Adds naming container to the form.
- 411: */
- 413: {
- 417: }
- 421: /**
- 422: * Adds control that repeats a specified prototype for each item in the list.
- 425: */
- 427: {
- 429: }
- 433: /********************* interface \ArrayAccess ****************d*g**/
- 437: /**
- 438: * Adds the component to the container.
- 442: */
- 444: {
- 446: }
- 450: /**
- 451: * Returns component specified by name. Throws exception if component doesn't exist.
- 455: */
- 457: {
- 459: }
- 463: /**
- 464: * Does component specified by name exists?
- 467: */
- 469: {
- 471: }
- 475: /**
- 476: * Removes component from the container. Throws exception if component doesn't exist.
- 479: */
- 481: {
- 485: }
- 486: }
- 490: /**
- 491: * Prevents cloning.
- 492: */
- 494: {
- 496: }
- 498: }