Page
Variables
Methods
Constuctor
- Parameters:
-
int$pageId - page id (0 for root page) -
string$lang - language code -
bool$forceInit - indicates whether to initialize page parameters
Page AddSubPage(
string
$name, [array
$config = null]) Adds subpage
- Parameters:
-
string$name - name of subpage -
array$config - associative array with configuration params Following configuration parameters are possible: hidden - 0 = visible, 1 = hidden in menu, 2 = hidden (default)
Returns 2 dimensional array with page content ARRAY[COLUMN][ROW] = Content object
- Parameters:
-
$config -
Returns browser friendly name for web pages (right now works only with latein alphabet)
Returns html code of page header, this code doesn't include tags and should be inserted between them.
Page GetParentPage(
) Returns the parent page of current page, if page doesn't exists, returns null
Returns page property, use SetProperty and SetProperties methods to set page properties
- Parameters:
-
string$propertyName - name of property
Returns indexed array of subpages ordered by sort index
- Parameters:
-
array$config - - associative array with configuration params ARRAY[CONFIG_KEY] = CONFIG_VALUE following CONFIG_KEYs are supported bool "hidden" - if true hidden subpages will be included to result (DEFAULT false) bool "hidden_in_menu" - if true hidden in menu subpages will be included to result (DEFAULT false)
Returns page title. In case page browser title is not specified, generates page title automatically which includes page name and names of parent pages.
Returns true if page is ancestor of this page
- Parameters:
-
object/int$page - id or page object
Returns true if page is a shortcut to another page
- Parameters:
-
string$url - url optional param to test url if it shortcut or not.
Sets page properties for specified page translation, use GetProperty to retrieve the property value.
- Parameters:
-
string$params - associative array with page properties
Sets page property, use GetProperty to retrieve the property value.
- Parameters:
-
string$propertyName - property name -
string$propertyValue - property value
Updates page parameters from associative array
- Parameters:
-
array$params - associative array with parameters to update