interface LeftAndMain_SearchFilter (View source)

Abstract interface for a class which may be used to filter the results displayed in a nested tree

Methods

public
string
getChildrenMethod()

Method on Hierarchy objects which is used to traverse into children relationships.

public
string
getNumChildrenMethod()

Method on Hierarchy objects which is used find the number of children for a parent page

public
bool
isPageIncluded(DataObject $page) deprecated

Returns TRUE if the given page should be included in the tree.

public
array|string
getPageClasses(DataObject $page) deprecated

Given a page, determine any additional CSS classes to apply to the tree node

Details

string getChildrenMethod()

Method on Hierarchy objects which is used to traverse into children relationships.

Return Value

string

string getNumChildrenMethod()

Method on Hierarchy objects which is used find the number of children for a parent page

Return Value

string

bool isPageIncluded(DataObject $page) deprecated

deprecated 5.4.0 will be renamed to isRecordIncluded().

Returns TRUE if the given page should be included in the tree.

Caution: Does NOT check view permissions on the page.

Parameters

DataObject $page

Return Value

bool

array|string getPageClasses(DataObject $page) deprecated

deprecated 5.4.0 will be renamed to getRecordClasses().

Given a page, determine any additional CSS classes to apply to the tree node

Parameters

DataObject $page

Return Value

array|string