Source for file Hashtable.php
Documentation is available at Hashtable.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: * The exception that is thrown when the key specified for accessing
- 30: * an element in a collection does not match any key.
- 32: */
- 34: {
- 35: }
- 39: /**
- 40: * Provides the base class for a generic collection of keys and values.
- 41: *
- 45: */
- 47: {
- 53: /**
- 54: * Inserts the specified element to the map.
- 59: */
- 61: {
- 62: // note: $item is nullable to be compatible with that of ICollection::add()
- 65: }
- 69: }
- 74: }
- 78: /**
- 79: * Append is not supported.
- 80: */
- 82: {
- 84: }
- 88: /**
- 89: * Returns a array of the keys contained in this map.
- 90: * return array
- 91: */
- 93: {
- 95: }
- 99: /**
- 100: * Returns the key of the first occurrence of the specified element,.
- 101: * or FALSE if this map does not contain this element.
- 104: */
- 106: {
- 108: }
- 112: /**
- 113: * Import from array or any traversable object.
- 117: */
- 119: {
- 124: }
- 133: }
- 134: }
- 135: }
- 139: /**
- 140: * Returns variable or $default if there is no element.
- 145: */
- 147: {
- 150: }
- 157: }
- 158: }
- 162: /**
- 163: * Do throw KeyNotFoundException?
- 165: */
- 167: {
- 169: }
- 173: /********************* interface \ArrayAccess ****************d*g**/
- 177: /**
- 178: * Inserts (replaces) item (\ArrayAccess implementation).
- 183: */
- 185: {
- 188: }
- 192: }
- 196: /**
- 197: * Returns item (\ArrayAccess implementation).
- 201: */
- 203: {
- 206: }
- 216: }
- 217: }
- 221: /**
- 222: * Exists item? (\ArrayAccess implementation).
- 226: */
- 228: {
- 231: }
- 234: }
- 238: /**
- 239: * Removes the element at the specified position in this list.
- 243: */
- 245: {
- 250: }
- 254: }
- 255: }
- 257: }