Source for file IList.php

Documentation is available at IList.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
  7. 7:  *
  8. 8:  * This source file is subject to the "Nette license" that is bundled
  9. 9:  * with this package in the file license.txt.
  10. 10:  *
  11. 11:  * For more information please see https://nette.org
  12. 12:  *
  13. 13:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  14. 14:  * @license    https://nette.org/license  Nette license
  15. 15:  * @link       https://nette.org
  16. 16:  * @category   Nette
  17. 17:  * @package    Nette\Collections
  18. 18:  * @version    $Id$
  19. 19:  */
  20. 20:  
  21. 21:  
  22. 22:  
  23. 23: require_once dirname(__FILE__'/../Collections/ICollection.php';
  24. 24:  
  25. 25:  
  26. 26:  
  27. 27: /**
  28. 28:  * Represents a collection of objects that can be individually
  29. 29:  * accessed by index (ordered collection)
  30. 30:  *
  31. 31:  * @author     David Grudl
  32. 32:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  33. 33:  * @package    Nette\Collections
  34. 34:  */
  35. 35: interface IList extends ICollectionArrayAccess
  36. 36: {
  37. 37:     function indexOf($item);
  38. 38:     function insertAt($index$item);
  39. 39:     //function ArrayAccess::offsetSet($offset, $value);
  40. 40:     //function ArrayAccess::offsetGet($offset);
  41. 41:     //function ArrayAccess::offsetUnset($offset);
  42. 42:     //function ArrayAccess::offsetExists($offset);
  43. 43: }