Source for file SmartCachingIterator.php
Documentation is available at SmartCachingIterator.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: */
- 22: /**
- 23: * Smarter caching interator.
- 24: *
- 28: *
- 34: */
- 36: {
- 43: {
- 55: }
- 56: }
- 60: /**
- 61: * Is the current element the first one?
- 63: */
- 65: {
- 67: }
- 71: /**
- 72: * Is the current element the last one?
- 74: */
- 76: {
- 78: }
- 82: /**
- 83: * Is the iterator empty?
- 85: */
- 87: {
- 89: }
- 93: /**
- 94: * Is the counter odd?
- 96: */
- 98: {
- 100: }
- 104: /**
- 105: * Is the counter even?
- 107: */
- 109: {
- 111: }
- 115: /**
- 116: * Returns the counter.
- 118: */
- 120: {
- 122: }
- 126: /**
- 127: * Returns the count of elements.
- 129: */
- 131: {
- 138: }
- 139: }
- 143: /**
- 144: * Forwards to the next element.
- 146: */
- 148: {
- 152: }
- 153: }
- 157: /**
- 158: * Rewinds the Iterator.
- 160: */
- 162: {
- 165: }
- 169: /**
- 170: * Returns the next key.
- 172: */
- 174: {
- 176: }
- 180: /**
- 181: * Returns the next element.
- 183: */
- 185: {
- 187: }
- 191: /********************* Nette\Object behaviour ****************d*g**/
- 195: /**
- 196: * Call to undefined method.
- 197: *
- 202: */
- 204: {
- 206: }
- 210: /**
- 211: * Returns property value. Do not call directly.
- 212: *
- 216: */
- 218: {
- 220: }
- 224: /**
- 225: * Sets value of a property. Do not call directly.
- 226: *
- 231: */
- 233: {
- 235: }
- 239: /**
- 240: * Is property defined?
- 241: *
- 244: */
- 246: {
- 248: }
- 252: /**
- 253: * Access to undeclared property.
- 254: *
- 258: */
- 260: {
- 263: }
- 266: }