PagesManager has API functions to handle Page object and delivers it through web application.
◆ __construct()
| PagesManager::__construct |
( |
mysqli |
$mysqli | ) |
|
Initialize PagesManager with live database connection.
- Parameters
-
◆ GetPageByID()
| PagesManager::GetPageByID |
( |
|
$id | ) |
|
Get Page from database by its id.
- Parameters
-
- Returns
- Page|null
◆ UpdatePage()
| PagesManager::UpdatePage |
( |
|
$id, |
|
|
|
$title, |
|
|
|
$content |
|
) |
| |
Updates Page in the web application.
- Parameters
-
| int | $id | |
| string | $title | |
| string | $content | |
- Returns
- bool
The documentation for this class was generated from the following file: