Source for file FormControl.php
Documentation is available at FormControl.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 11: */
- 15: /**
- 16: * Base class that implements the basic functionality common to form controls.
- 17: *
- 20: *
- 36: */
- 38: {
- 77: /**
- 79: */
- 81: {
- 88: }
- 92: /**
- 93: * This method will be called when the component becomes attached to Form.
- 96: */
- 98: {
- 102: }
- 103: }
- 107: /**
- 108: * Returns form.
- 111: */
- 113: {
- 115: }
- 119: /**
- 120: * Returns name of control within a Form & INamingContainer scope.
- 122: */
- 124: {
- 133: }
- 136: throw new InvalidArgumentException("Form control name 'submit' is not allowed due to JavaScript limitations.");
- 137: }
- 139: }
- 141: }
- 145: /**
- 146: * Changes control's HTML id.
- 149: */
- 151: {
- 154: }
- 158: /**
- 159: * Returns control's HTML id.
- 161: */
- 163: {
- 170: }
- 172: }
- 176: /**
- 177: * Sets user-specific option.
- 178: *
- 179: * Common options:
- 180: * - 'rendered' - indicate if method getControl() have been called
- 181: * - 'required' - indicate if ':required' rule has been applied
- 182: * - 'description' - textual or Html object description (recognized by ConventionalRenderer)
- 183: *
- 187: */
- 189: {
- 195: }
- 197: }
- 201: /**
- 202: * Returns user-specific option.
- 206: */
- 208: {
- 210: }
- 214: /**
- 215: * Returns user-specific options.
- 217: */
- 219: {
- 221: }
- 225: /********************* translator ****************d*g**/
- 229: /**
- 230: * Sets translate adapter.
- 233: */
- 235: {
- 238: }
- 242: /**
- 243: * Returns translate adapter.
- 245: */
- 247: {
- 250: }
- 252: }
- 256: /**
- 257: * Returns translated string.
- 261: */
- 263: {
- 266: }
- 270: /********************* interface IFormControl ****************d*g**/
- 274: /**
- 275: * Sets control's value.
- 278: */
- 280: {
- 283: }
- 287: /**
- 288: * Returns control's value.
- 290: */
- 292: {
- 294: }
- 298: /**
- 299: * Sets control's default value.
- 302: */
- 304: {
- 308: }
- 310: }
- 314: /**
- 315: * Loads HTTP data.
- 317: */
- 319: {
- 320: $path = explode('[', strtr(str_replace(array('[]', ']'), '', $this->getHtmlName()), '.', '_'));
- 322: }
- 326: /**
- 327: * Disables or enables control.
- 330: */
- 332: {
- 335: }
- 339: /**
- 340: * Is control disabled?
- 342: */
- 344: {
- 346: }
- 350: /********************* rendering ****************d*g**/
- 354: /**
- 355: * Generates control's HTML element.
- 357: */
- 359: {
- 366: }
- 370: /**
- 371: * Generates label's HTML element.
- 374: */
- 376: {
- 387: }
- 389: }
- 393: /**
- 394: * Returns control's HTML element template.
- 396: */
- 398: {
- 400: }
- 404: /**
- 405: * Returns label's HTML element template.
- 407: */
- 409: {
- 411: }
- 415: /**
- 416: * Sets 'rendered' indicator.
- 420: */
- 422: {
- 425: }
- 429: /**
- 430: * Does method getControl() have been called?
- 433: */
- 435: {
- 437: }
- 441: /********************* rules ****************d*g**/
- 445: /**
- 446: * Adds a validation rule.
- 451: */
- 453: {
- 456: }
- 460: /**
- 461: * Adds a validation condition a returns new branch.
- 465: */
- 467: {
- 469: }
- 473: /**
- 474: * Adds a validation condition based on another control a returns new branch.
- 479: */
- 481: {
- 483: }
- 487: /**
- 489: */
- 491: {
- 493: }
- 497: /**
- 498: * Makes control mandatory.
- 502: */
- 504: {
- 507: }
- 511: /**
- 512: * Is control mandatory?
- 515: */
- 517: {
- 519: }
- 523: /**
- 524: * New rule or condition notification callback.
- 527: */
- 529: {
- 532: }
- 533: }
- 537: /********************* validation ****************d*g**/
- 541: /**
- 542: * Equal validator: are control's value and second parameter equal?
- 546: */
- 548: {
- 554: }
- 555: }
- 556: }
- 558: }
- 562: /**
- 563: * Filled validator: is control filled?
- 566: */
- 568: {
- 570: }
- 574: /**
- 575: * Valid validator: is control valid?
- 578: */
- 580: {
- 582: }
- 586: /**
- 587: * Adds error message to the list.
- 590: */
- 592: {
- 595: }
- 597: }
- 601: /**
- 602: * Returns errors corresponding to control.
- 604: */
- 606: {
- 608: }
- 612: /**
- 614: */
- 616: {
- 618: }
- 622: /**
- 624: */
- 626: {
- 628: }
- 630: }