Source for file TextInput.php
Documentation is available at TextInput.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 11: */
- 15: /**
- 16: * Single line text input control.
- 17: *
- 20: */
- 22: {
- 24: /**
- 29: */
- 31: {
- 39: }
- 43: /**
- 44: * Filter: shortens value to control's max length.
- 46: */
- 48: {
- 51: }
- 53: }
- 57: /**
- 58: * Sets or unsets the password mode.
- 61: */
- 63: {
- 66: }
- 70: /**
- 71: * Generates control's HTML element.
- 73: */
- 75: {
- 78: $control->value = $this->getValue() === '' ? $this->translate($this->emptyValue) : $this->value;
- 79: }
- 81: }
- 86: {
- 87: if (is_string($rule->operation) && strcasecmp($rule->operation, ':length') === 0 && !$rule->isNegative) {
- 90: } elseif (is_string($rule->operation) && strcasecmp($rule->operation, ':maxLength') === 0 && !$rule->isNegative) {
- 92: }
- 95: }
- 98: }