pm_Pathbar::getUpLevelURL Method

Returns URL of the page located one level higher in the hierarchy than the specified page.

Syntax

function getUpLevelURL ($page)

Parameters

page

      A string value that holds the action parameter (the PHP script file) of the specified page. Is set to NULL by default.

Returns

A string value that holds URL of the page located one level higher in the hierarchy than the specified page.

Remarks

If the target page refers to the 'root' level of hierarchy (displayed in the navigation pane of Plesk Control Panel), the function returns URL from the global scope, or the '/' string if failed to find such.