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 https://nette.org
- 12: *
- 19: */
- 23: /**
- 24: * Smarter caching interator.
- 25: *
- 29: */
- 31: {
- 38: {
- 50: }
- 51: }
- 55: /**
- 56: * Is the current element the first one?
- 58: */
- 60: {
- 62: }
- 66: /**
- 67: * Is the current element the last one?
- 69: */
- 71: {
- 73: }
- 77: /**
- 78: * Is the iterator empty?
- 80: */
- 82: {
- 84: }
- 88: /**
- 89: * Is the counter odd?
- 91: */
- 93: {
- 95: }
- 99: /**
- 100: * Is the counter even?
- 102: */
- 104: {
- 106: }
- 110: /**
- 111: * Returns the counter.
- 113: */
- 115: {
- 117: }
- 121: /**
- 122: * Returns the current index (counter - 1).
- 125: */
- 127: {
- 129: }
- 133: /**
- 134: * Forwards to the next element.
- 136: */
- 138: {
- 142: }
- 143: }
- 147: /**
- 148: * Rewinds the Iterator.
- 150: */
- 152: {
- 155: }
- 159: /********************* Nette\Object behaviour ****************d*g**/
- 163: /**
- 164: * Call to undefined method.
- 165: *
- 170: */
- 172: {
- 174: }
- 178: /**
- 179: * Returns property value. Do not call directly.
- 180: *
- 184: */
- 186: {
- 188: }
- 192: /**
- 193: * Sets value of a property. Do not call directly.
- 194: *
- 199: */
- 201: {
- 203: }
- 207: /**
- 208: * Is property defined?
- 209: *
- 212: */
- 214: {
- 216: }
- 220: /**
- 221: * Access to undeclared property.
- 222: *
- 226: */
- 228: {
- 231: }
- 234: }