PHP Class SimpleBrowserHistory, simpletest

@package SimpleTest
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

atBeginning() protected méthode

Test for being at the beginning.
protected atBeginning ( ) : boolean
Résultat boolean True if first.

atEnd() protected méthode

Test for being at the last entry.
protected atEnd ( ) : boolean
Résultat boolean True if last.

back() public méthode

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

dropFuture() protected méthode

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

forward() public méthode

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

getParameters() public méthode

Parameters of last fetch from current history position.
public getParameters ( ) : SimpleFormEncoding
Résultat SimpleFormEncoding Post parameters.

getUrl() public méthode

Last fully qualified URL for current history position.
public getUrl ( ) : SimpleUrl
Résultat SimpleUrl URL for this position.

isEmpty() protected méthode

Test for no entries yet.
protected isEmpty ( ) : boolean
Résultat boolean True if empty.

recordEntry() public méthode

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.