CachingIterator 类 CachingIterator
&reftitle.intro; 该对象支持在另一迭代器上缓存迭代。
&reftitle.classsynopsis; CachingIterator extends IteratorIterator implements ArrayAccess Countable Stringable &Constants; public const int CachingIterator::CALL_TOSTRING public const int CachingIterator::CATCH_GET_CHILD public const int CachingIterator::TOSTRING_USE_KEY public const int CachingIterator::TOSTRING_USE_CURRENT public const int CachingIterator::TOSTRING_USE_INNER public const int CachingIterator::FULL_CACHE &Methods; &InheritedMethods;
&reftitle.constants; CachingIterator::CALL_TOSTRING 每个元素转换为字符串。 CachingIterator::CATCH_GET_CHILD 访问子元素时不要抛出异常。 CachingIterator::TOSTRING_USE_KEY 转换为字符串时使用 key。 CachingIterator::TOSTRING_USE_CURRENT 转换为字符串时使用 current。 CachingIterator::TOSTRING_USE_INNER 转换为字符串时使用 inner。 CachingIterator::FULL_CACHE 缓存所有读取的数据。
&reftitle.changelog; &Version; &Description; 8.0.0 CachingIterator 现在实现了 Stringable
&reference.spl.entities.cachingiterator;