« RecursiveArrayIterator::hasChildren
RecursiveCachingIterator::__construct »
PHP Manual
イテレータ
RecursiveCachingIterator クラス
RecursiveCachingIterator クラス
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
はじめに
...
クラス概要
class
RecursiveCachingIterator
extends
CachingIterator
implements
RecursiveIterator
{
/* 継承した定数 */
const
int
CachingIterator::CALL_TOSTRING
= 1
;
const
int
CachingIterator::CATCH_GET_CHILD
= 16
;
const
int
CachingIterator::TOSTRING_USE_KEY
= 2
;
const
int
CachingIterator::TOSTRING_USE_CURRENT
= 4
;
const
int
CachingIterator::TOSTRING_USE_INNER
= 8
;
const
int
CachingIterator::FULL_CACHE
= 256
;
/* メソッド */
public
__construct
(
Iterator
$iterator
,
int
$flags
= RecursiveCachingIterator::CALL_TOSTRING
)
public
getChildren
():
?
RecursiveCachingIterator
public
hasChildren
():
bool
/* 継承したメソッド */
public
CachingIterator::count
():
int
public
CachingIterator::current
():
mixed
public
CachingIterator::getCache
():
array
public
CachingIterator::getFlags
():
int
public
CachingIterator::getInnerIterator
():
Iterator
public
CachingIterator::hasNext
():
bool
public
CachingIterator::key
():
scalar
public
CachingIterator::next
():
void
public
CachingIterator::offsetExists
(
string
$key
):
bool
public
CachingIterator::offsetGet
(
string
$key
):
mixed
public
CachingIterator::offsetSet
(
string
$key
,
mixed
$value
):
void
public
CachingIterator::offsetUnset
(
string
$key
):
void
public
CachingIterator::rewind
():
void
public
CachingIterator::setFlags
(
int
$flags
):
void
public
CachingIterator::__toString
():
string
public
CachingIterator::valid
():
bool
public
IteratorIterator::current
():
mixed
public
IteratorIterator::getInnerIterator
():
?
Iterator
public
IteratorIterator::key
():
mixed
public
IteratorIterator::next
():
void
public
IteratorIterator::rewind
():
void
public
IteratorIterator::valid
():
bool
}
目次
RecursiveCachingIterator::__construct
— コンストラクタ
RecursiveCachingIterator::getChildren
— 内部イテレータの子を RecursiveCachingIterator として返す
RecursiveCachingIterator::hasChildren
— 内部イテレータの現在の要素が子を持つかどうかチェックする
関連キーワード:
public
,
CachingIterator
,
RecursiveCachingIterator
,
int
,
クラス
,
key
,
string
,
TOSTRING
,
hasChildren
,
construct