Source for file SelectBox.php
Documentation is available at SelectBox.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 https://nette.org
- 12: *
- 19: */
- 27: /**
- 28: * Select box control that allows single item selection.
- 29: *
- 33: */
- 35: {
- 50: /**
- 54: */
- 56: {
- 64: }
- 65: }
- 69: /**
- 70: * Returns selected item key.
- 72: */
- 74: {
- 78: }
- 81: }
- 85: /**
- 86: * Returns selected item key (not checked).
- 88: */
- 90: {
- 92: }
- 96: /**
- 97: * Ignores the first item in select box.
- 100: */
- 102: {
- 105: }
- 109: /**
- 110: * Is first item in select box ignored?
- 112: */
- 114: {
- 116: }
- 120: /**
- 121: * Are the keys used?
- 123: */
- 125: {
- 127: }
- 131: /**
- 132: * Sets items from which to choose.
- 135: */
- 137: {
- 145: }
- 151: }
- 153: }
- 157: }
- 160: }
- 161: }
- 163: }
- 167: /**
- 168: * Returns items from which to choose.
- 170: */
- 172: {
- 174: }
- 178: /**
- 179: * Returns selected value.
- 181: */
- 183: {
- 190: }
- 191: }
- 195: /**
- 196: * Generates control's HTML element.
- 198: */
- 200: {
- 213: }
- 224: }
- 225: }
- 226: }
- 228: }
- 232: /**
- 233: * Filled validator: has been any item selected?
- 236: */
- 238: {
- 241: }
- 243: }