PHP Класс SimpleBrowserHistory, simpletest

@package SimpleTest
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.