![]() |
Bearsampp 2026.7.11
|
Public Member Functions | |
| __construct () | |
| getPage () | |
| getPageQuery ($query) | |
| getPageUrl ($query) | |
| refreshAliasContent () | |
| refreshCommonsJsContent () | |
Data Fields | |
| const | PAGE_INDEX = 'index' |
| const | PAGE_PHPINFO = 'phpinfo' |
Private Attributes | |
| $page | |
| $pageList | |
Class Homepage
This class handles the homepage functionalities of the Bearsampp application. It manages the page navigation, resource paths, and content refresh operations.
Definition at line 17 of file class.homepage.php.
| __construct | ( | ) |
Homepage constructor. Initializes the homepage class and sets the current page based on the query parameter.
Definition at line 36 of file class.homepage.php.
References $page, UtilInput\cleanGetVar(), Log\initClass(), and refreshCommonsJsContent().
| getPage | ( | ) |
Gets the current page.
Definition at line 52 of file class.homepage.php.
References $page.
| getPageQuery | ( | $query | ) |
Constructs the page query string based on the provided query.
| string | $query | The query string to construct. |
Definition at line 63 of file class.homepage.php.
Referenced by getPageUrl().
| getPageUrl | ( | $query | ) |
Constructs the full URL for the given page query.
| string | $query | The query string to construct the URL for. |
Definition at line 82 of file class.homepage.php.
References $bearsamppRoot, Path\getLocalUrl(), and getPageQuery().
| refreshAliasContent | ( | ) |
Refreshes the alias content by updating the alias configuration file.
Definition at line 93 of file class.homepage.php.
References $bearsamppBins, $result, Path\getHomepagePath(), and Path\getWebResourcesPath().
| refreshCommonsJsContent | ( | ) |
Refreshes the commons JavaScript content by updating the _commons.js and quickpick.js files.
Definition at line 108 of file class.homepage.php.
Referenced by __construct().
|
private |
Definition at line 22 of file class.homepage.php.
Referenced by __construct(), and getPage().
|
private |
Definition at line 27 of file class.homepage.php.
| const PAGE_INDEX = 'index' |
Definition at line 19 of file class.homepage.php.
| const PAGE_PHPINFO = 'phpinfo' |
Definition at line 20 of file class.homepage.php.