Page
class Page extends AliasModel
A custom page
Constants
TABLE |
The name of the database table used for queries |
CREATE_PERMISSION |
|
EDIT_PERMISSION |
|
SOFT_DELETE_PERMISSION |
|
HARD_DELETE_PERMISSION |
|
Methods
Get the raw content of the page
Get the page's submission time
Get the time when the page was last updated
Get the status of the page
Find out whether this is the homepage
Set the content of the page
Update the last edit timestamp
Create a new Page
Get the name of the route that shows the object
Get the possible statuses representing an active model (visible to everyone)
Get the MySQL columns that will be loaded as soon as the model is created
{@inheritdoc}
Get a query builder for pages
Details
at line line 87
string
getContent()
Get the raw content of the page
at line line 98
TimeDate
getCreated()
Get the page's submission time
at line line 109
TimeDate
getUpdated()
Get the time when the page was last updated
at line line 120
Player
getAuthor()
Get the user who created the page
at line line 129
string
getStatus()
Get the status of the page
at line line 138
bool
isHomePage()
Find out whether this is the homepage
at line line 149
Page
setContent(string $content)
Set the content of the page
at line line 160
Page
setStatus(string $status)
Set the status of the page
at line line 169
Page
updateEditTimestamp()
Update the last edit timestamp
at line line 184
static Page
addPage(string $title, string $content, int $authorID, string $status = 'live')
Create a new Page
at line line 199
static string
getRouteName(string $action = 'show')
Get the name of the route that shows the object
at line line 219
static string[]
getActiveStatuses()
Get the possible statuses representing an active model (visible to everyone)
at line line 227
static string
getEagerColumns()
Get the MySQL columns that will be loaded as soon as the model is created
at line line 235
static
getLazyColumns()
{@inheritdoc}
at line line 244
static QueryBuilder
getQueryBuilder()
Get a query builder for pages
at line line 260
static Page
getHomePage()
deprecated
deprecated
Get the home page