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 https://nette.org
- 12: *
- 19: */
- 29: /**
- 30: * The exception that is thrown when the key specified for accessing
- 31: * an element in a collection does not match any key.
- 33: */
- 35: {
- 36: }
- 40: /**
- 41: * Provides the base class for a generic collection of keys and values.
- 42: *
- 46: */
- 48: {
- 54: /**
- 55: * Inserts the specified element to the map.
- 60: */
- 62: {
- 63: // note: $item is nullable to be compatible with that of ICollection::add()
- 66: }
- 70: }
- 75: }
- 79: /**
- 80: * Append is not supported.
- 81: */
- 83: {
- 85: }
- 89: /**
- 90: * Returns a array of the keys contained in this map.
- 91: * return array
- 92: */
- 94: {
- 96: }
- 100: /**
- 101: * Returns the key of the first occurrence of the specified element,.
- 102: * or FALSE if this map does not contain this element.
- 105: */
- 107: {
- 109: }
- 113: /**
- 114: * Import from array or any traversable object.
- 118: */
- 120: {
- 123: }
- 132: }
- 133: }
- 134: }
- 138: /**
- 139: * Returns variable or $default if there is no element.
- 144: */
- 146: {
- 149: }
- 156: }
- 157: }
- 161: /**
- 162: * Do throw KeyNotFoundException?
- 164: */
- 166: {
- 168: }
- 172: /********************* interface \ArrayAccess ****************d*g**/
- 176: /**
- 177: * Inserts (replaces) item (\ArrayAccess implementation).
- 182: */
- 184: {
- 187: }
- 191: }
- 195: /**
- 196: * Returns item (\ArrayAccess implementation).
- 200: */
- 202: {
- 205: }
- 215: }
- 216: }
- 220: /**
- 221: * Exists item? (\ArrayAccess implementation).
- 225: */
- 227: {
- 230: }
- 233: }
- 237: /**
- 238: * Removes the element at the specified position in this list.
- 242: */
- 244: {
- 247: }
- 252: }
- 253: }
- 255: }