2024.8.23
|
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' |
const | PAGE_STDL_APC = 'apc.php' |
Private Attributes | |
$page | |
$pageList | |
$pageStdl | |
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 16 of file class.homepage.php.
Homepage::__construct | ( | ) |
Homepage constructor. Initializes the homepage class and sets the current page based on the query parameter.
Definition at line 43 of file class.homepage.php.
References $page, Util\cleanGetVar(), Util\logInitClass(), and PAGE_INDEX.
Homepage::getHomepagePath | ( | ) |
Gets the path to the homepage directory.
Definition at line 97 of file class.homepage.php.
References $bearsamppCore.
Referenced by refreshAliasContent(), and refreshCommonsJsContent().
Homepage::getIconsPath | ( | ) |
Gets the path to the icons directory.
Definition at line 118 of file class.homepage.php.
References getResourcesPath().
Homepage::getImagesPath | ( | ) |
Gets the path to the images directory.
Definition at line 108 of file class.homepage.php.
References getResourcesPath().
Homepage::getPage | ( | ) |
Gets the current page.
Definition at line 56 of file class.homepage.php.
References $page.
Homepage::getPageQuery | ( | $query | ) |
Constructs the page query string based on the provided query.
string | $query | The query string to construct. |
Definition at line 67 of file class.homepage.php.
Referenced by getPageUrl().
Homepage::getPageUrl | ( | $query | ) |
Constructs the full URL for the given page query.
string | $query | The query string to construct the URL for. |
Definition at line 86 of file class.homepage.php.
References $bearsamppRoot, and getPageQuery().
Homepage::getResourcesPath | ( | ) |
Gets the path to the resources directory.
Definition at line 128 of file class.homepage.php.
References $bearsamppCore, and APP_TITLE.
Referenced by getIconsPath(), getImagesPath(), getResourcesUrl(), refreshAliasContent(), and refreshCommonsJsContent().
Homepage::getResourcesUrl | ( | ) |
Gets the URL to the resources directory.
Definition at line 139 of file class.homepage.php.
References $bearsamppRoot, and getResourcesPath().
Homepage::refreshAliasContent | ( | ) |
Refreshes the alias content by updating the alias configuration file.
Definition at line 150 of file class.homepage.php.
References $bearsamppBins, $result, getHomepagePath(), and getResourcesPath().
Homepage::refreshCommonsJsContent | ( | ) |
Refreshes the commons JavaScript content by updating the _commons.js file.
Definition at line 165 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.
|
private |
Definition at line 35 of file class.homepage.php.
const Homepage::PAGE_INDEX = 'index' |
Definition at line 18 of file class.homepage.php.
Referenced by __construct().
const Homepage::PAGE_PHPINFO = 'phpinfo' |
Definition at line 19 of file class.homepage.php.
const Homepage::PAGE_STDL_APC = 'apc.php' |
Definition at line 20 of file class.homepage.php.