This function works with page title templates and not with the titles directly. Examples of page title templates can be found in the Label Editor.
Syntax
Labels::getPageTitleTempl($table, $page, $language)
Arguments
$table
the table name.
$field
the field name.
$language
the language of the template. If the $language parameter is not specified, the current language is used.
$page
the page parameter accepts one of the following values:
PAGE_LIST
PAGE_PRINT
PAGE_ADD
PAGE_EDIT
PAGE_VIEW
PAGE_SEARCH
PAGE_EXPORT
PAGE_IMPORT
PAGE_REPORT
PAGE_RPRINT
PAGE_CHART
PAGE_MASTER_INFO_LIST
PAGE_MASTER_INFO_PRINT
PAGE_MASTER_INFO_REPORT
PAGE_MASTER_INFO_RPRINT
PAGE_MENU
PAGE_LOGIN
PAGE_REGISTER
PAGE_REMIND
PAGE_CHANGEPASS
Return value
Returns the page title. Page titles can be set in the Label Editor.
Example
This example shows how to get the Edit page title template.
Labels::getPageTitleTempl("carscars", PAGE_EDIT);
See also:
•Labels/Titles API: setPageTitleTempl()
•Labels/Titles API: getFieldLabel()
•Miscellaneous settings: Label Editor