class Context (View source)

The Context represents the current page within statements (loops) or just the requested page.

Properties

private $Page The context Page.

Methods

__construct(Page|null $Page)

The constructor.

get()

Return $Page.

set(Page|null $Page)

Set the context.

Details

__construct(Page|null $Page)

The constructor.

Parameters

Page|null $Page

Page get()

Return $Page.

Return Value

Page $Page

set(Page|null $Page)

Set the context.

Parameters

Page|null $Page