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 http://nettephp.com
- 12: *
- 18: */
- 26: /**
- 27: * Select box control that allows single item selection.
- 28: *
- 32: *
- 37: */
- 39: {
- 54: /**
- 58: */
- 60: {
- 68: }
- 69: }
- 73: /**
- 74: * Returns selected item key.
- 76: */
- 78: {
- 82: }
- 85: }
- 89: /**
- 90: * Returns selected item key (not checked).
- 92: */
- 94: {
- 96: }
- 100: /**
- 101: * Ignores the first item in select box.
- 104: */
- 106: {
- 114: }
- 115: }
- 117: }
- 121: /**
- 122: * Is first item in select box ignored?
- 124: */
- 126: {
- 128: }
- 132: /**
- 133: * Are the keys used?
- 135: */
- 137: {
- 139: }
- 143: /**
- 144: * Sets items from which to choose.
- 147: */
- 149: {
- 157: }
- 163: }
- 165: }
- 169: }
- 172: }
- 173: }
- 175: }
- 179: /**
- 180: * Returns items from which to choose.
- 182: */
- 184: {
- 186: }
- 190: /**
- 191: * Returns selected value.
- 193: */
- 195: {
- 202: }
- 203: }
- 207: /**
- 208: * Generates control's HTML element.
- 210: */
- 212: {
- 225: }
- 236: }
- 237: }
- 238: }
- 240: }
- 244: /**
- 245: * Filled validator: has been any item selected?
- 248: */
- 250: {
- 253: }
- 255: }