Pages
in package
Utility class for Pages functionality
Table of Contents
Methods
- getFrontPageText() : string|null
- Get the front page text if it exists and is published
- expandFrontPageHtml() : string
- Expand FILEBASE tokens using the current request's course base URL.
Methods
getFrontPageText()
Get the front page text if it exists and is published
public
static getFrontPageText(int $context_id) : string|null
Parameters
- $context_id : int
-
The context ID to look for the front page
Return values
string|null —The front page body text if found and published, null otherwise
expandFrontPageHtml()
Expand FILEBASE tokens using the current request's course base URL.
private
static expandFrontPageHtml(string $html) : string
Parameters
- $html : string