![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct () | |
getHomepagePath () | |
getIconsPath () | |
getImagesPath () | |
getPage () | |
getPageQuery ($query) | |
getPageUrl ($query) | |
getResourcesPath () | |
getResourcesUrl () | |
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, Util\cleanGetVar(), and Util\logInitClass().
getHomepagePath | ( | ) |
Gets the path to the homepage directory.
Definition at line 90 of file class.homepage.php.
References $bearsamppCore.
Referenced by refreshAliasContent(), and refreshCommonsJsContent().
getIconsPath | ( | ) |
Gets the path to the icons directory.
Definition at line 111 of file class.homepage.php.
References getResourcesPath().
getImagesPath | ( | ) |
Gets the path to the images directory.
Definition at line 101 of file class.homepage.php.
References getResourcesPath().
getPage | ( | ) |
Gets the current page.
Definition at line 49 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 60 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 79 of file class.homepage.php.
References $bearsamppRoot, and getPageQuery().
getResourcesPath | ( | ) |
Gets the path to the resources directory.
Definition at line 121 of file class.homepage.php.
References $bearsamppCore, and APP_TITLE.
Referenced by getIconsPath(), getImagesPath(), getResourcesUrl(), refreshAliasContent(), and refreshCommonsJsContent().
getResourcesUrl | ( | ) |
Gets the URL to the resources directory.
Definition at line 132 of file class.homepage.php.
References $bearsamppRoot, and getResourcesPath().
refreshAliasContent | ( | ) |
Refreshes the alias content by updating the alias configuration file.
Definition at line 143 of file class.homepage.php.
References $bearsamppBins, $result, getHomepagePath(), and getResourcesPath().
refreshCommonsJsContent | ( | ) |
Refreshes the commons JavaScript content by updating the _commons.js file.
Definition at line 158 of file class.homepage.php.
References getHomepagePath(), getResourcesPath(), and Util\replaceInFile().
|
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.