HumHub Documentation (unofficial)

History
in package

History.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$position  : mixed
$stack  : mixed

Methods

add()  : mixed
Adds a Request to the history.
back()  : Request
Goes back in the history.
clear()  : mixed
Clears the history.
current()  : Request
Returns the current element in the history.
forward()  : Request
Goes forward in the history.
isEmpty()  : bool
Returns true if the history is empty.

Properties

$position

protected mixed $position = -1

Methods

back()

Goes back in the history.

public back() : Request
Tags
throws
LogicException

if the stack is already on the first page

Return values
Request

A Request instance

clear()

Clears the history.

public clear() : mixed

current()

Returns the current element in the history.

public current() : Request
Tags
throws
LogicException

if the stack is empty

Return values
Request

A Request instance

forward()

Goes forward in the history.

public forward() : Request
Tags
throws
LogicException

if the stack is already on the last page

Return values
Request

A Request instance

isEmpty()

Returns true if the history is empty.

public isEmpty() : bool
Return values
bool

true if the history is empty, false otherwise


        
On this page

Search results