interface CurrentRecordIdentifier (View source)

This interface lets us set up objects that will tell us what the current page is.

Methods

public
int
currentRecordID()

Get the current page ID.

public
bool
isCurrentRecord(DataObject $page)

Check if the given DataObject is the current page.

Details

int currentRecordID()

Get the current page ID.

Return Value

int

bool isCurrentRecord(DataObject $page)

Check if the given DataObject is the current page.

Parameters

DataObject $page

The page to check.

Return Value

bool