PHP 클래스 SimpleBrowserHistory, simpletest

@package SimpleTest
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
back ( ) : boolean Step back one place in the history. Stops at the first page.
forward ( ) : boolean Step forward one place. If already at the latest entry then nothing will happen.
getParameters ( ) : SimpleFormEncoding Parameters of last fetch from current history position.
getUrl ( ) : SimpleUrl Last fully qualified URL for current history position.
recordEntry ( SimpleUrl $url, SimpleEncoding $parameters ) Adds a successfully fetched page to the history.

보호된 메소드들

메소드 설명
atBeginning ( ) : boolean Test for being at the beginning.
atEnd ( ) : boolean Test for being at the last entry.
dropFuture ( ) Ditches all future entries beyond the current point.
isEmpty ( ) : boolean Test for no entries yet.

메소드 상세

atBeginning() 보호된 메소드

Test for being at the beginning.
protected atBeginning ( ) : boolean
리턴 boolean True if first.

atEnd() 보호된 메소드

Test for being at the last entry.
protected atEnd ( ) : boolean
리턴 boolean True if last.

back() 공개 메소드

Step back one place in the history. Stops at the first page.
public back ( ) : boolean
리턴 boolean True if any previous entries.

dropFuture() 보호된 메소드

Ditches all future entries beyond the current point.
protected dropFuture ( )

forward() 공개 메소드

Step forward one place. If already at the latest entry then nothing will happen.
public forward ( ) : boolean
리턴 boolean True if any future entries.

getParameters() 공개 메소드

Parameters of last fetch from current history position.
public getParameters ( ) : SimpleFormEncoding
리턴 SimpleFormEncoding Post parameters.

getUrl() 공개 메소드

Last fully qualified URL for current history position.
public getUrl ( ) : SimpleUrl
리턴 SimpleUrl URL for this position.

isEmpty() 보호된 메소드

Test for no entries yet.
protected isEmpty ( ) : boolean
리턴 boolean True if empty.

recordEntry() 공개 메소드

Adds a successfully fetched page to the history.
public recordEntry ( SimpleUrl $url, SimpleEncoding $parameters )
$url SimpleUrl URL of fetch.
$parameters SimpleEncoding Any post data with the fetch.