Класс CachingIteratorCachingIterator
&reftitle.intro;
Этот объект поддерживает кеширование итерации над другим итератором.
&reftitle.classsynopsis;
CachingIteratorextendsIteratorIteratorimplementsArrayAccessCountableStringable&Constants;publicconstintCachingIterator::CALL_TOSTRINGpublicconstintCachingIterator::CATCH_GET_CHILDpublicconstintCachingIterator::TOSTRING_USE_KEYpublicconstintCachingIterator::TOSTRING_USE_CURRENTpublicconstintCachingIterator::TOSTRING_USE_INNERpublicconstintCachingIterator::FULL_CACHE&Methods;&InheritedMethods;
&reftitle.constants;
CachingIterator::CALL_TOSTRINGПреобразует каждый элемент в строку.CachingIterator::CATCH_GET_CHILDНе выбрасывать исключения при доступе к дочерним элементам.CachingIterator::TOSTRING_USE_KEY
Использовать ключ при
преобразовании в строку.
CachingIterator::TOSTRING_USE_CURRENT
Использовать текущий элемент
при преобразовании в строку.CachingIterator::TOSTRING_USE_INNER
Использовать внутренний
итератор при преобразовании в строку.
CachingIterator::FULL_CACHEКеширование всей прочтённой информации.
&reftitle.changelog;
&Version;&Description;8.0.0
Класс CachingIterator теперь реализует
интерфейс Stringable.
&reference.spl.entities.cachingiterator;