PHP 트레잇 Dotink\Parody\Iterator

저자: Matthew J. Sahagian [mjs] ([email protected])
파일 보기 프로젝트 열기: dotink/parody

공개 메소드들

메소드 설명
current ( ) : mixed Get the current value
key ( ) : mixed Gets the current key
next ( ) : void Moves the current element of the value forward one
rewind ( ) : void Moved the current element of the value back to the beginning
valid ( ) : boolean Determine if the current key of the vlaue is Valid

메소드 상세

current() 공개 메소드

Get the current value
public current ( ) : mixed
리턴 mixed The current value of the set traversable value

key() 공개 메소드

Gets the current key
public key ( ) : mixed
리턴 mixed The current key of the set traversable value

next() 공개 메소드

Moves the current element of the value forward one
public next ( ) : void
리턴 void

rewind() 공개 메소드

Moved the current element of the value back to the beginning
public rewind ( ) : void
리턴 void

valid() 공개 메소드

Determine if the current key of the vlaue is Valid
public valid ( ) : boolean
리턴 boolean TRUE if the current key is valid, FALSE otherwise