Method | Description | Returns |
---|---|---|
getName() | Get the name for the active revision | string |
getText() | Get the text for the active revision | string |
getImageTargetFolderPath() | Get the target folder path for uploaded images. Images will be moved to this path after the upload has been processed. | string |
getFullSlug() | Get the full slug for the post | string |
getFullPath() | Get the full path for the post including the module and blog routes | string |
getOriginalPath() | Get the original path to the post without any custom urls applied. | string |
getAuthor() | Fetches first author from the authors list | Author |
getImageSelectorStartPath() | Get the start folder for browsing images related to this record using the file manager | string |
getId() | int | |
getSite() | Site | |
getSlug() | string | |
getTotalCommentsCount() | int | |
getPublishedCommentsCount() | int | |
getLockComments() | bool | |
isFeatured() | bool | |
getCreated() | Get the date the record was created. | DateTime |
getModified() | Get the last modification date for the record. | DateTime |
getPublished() | Get the date the record was published or is scheduled to be published. | DateTime |
isPublished() | Check if the record is published. | bool |
getAuthors() | Collection (Author) | |
getBlog() | Blog | |
getTags() | Collection (Tag) | |
getCategories() | Collection (Category) | |
getComments() | Collection (Comment) | |
getActiveRevision() | PostRevision | |
getRevisionById(int $id) | Get the revision with the specified id | PostRevision |
getRevisions() | Collection (PostRevision) | |
getLastRevision() | Get the last revision for the entity. If a revision has been added, this will be the newly added revision. | PostRevision |
getSeoSettings() | SeoSettings | |
getLanguage() | Language | |
getSourcePost() | Post | |
getRelatedPosts() | Collection (Post) | |
getOwner() | User | |
getCustomUrl() | Get the custom url used for the page. This will take precedence over the slugs of this page, parent page and the module. | CustomUrl |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
getAvailableUsers() | Get the available users | Collection |
getAvailableLayouts() | Get the available layouts | Collection |
getAvailableSourcePosts() | Get the available source posts for this posts | Collection |
getCreateChildUrl() | Get the url for creating a child record. | string |
getDisplayProperty() | Get the display property to use | string |
getGroupByProperty() | Get the property by which this record should be grouped by (for select fields) | string |
getSortByProperty() | Get the property by which this record should be sorted by | string |
getHateoasLinks() | Get the HATEOAS links for the record | array |
getEditUrl() | Get the url for editing the record. | string |
getDeleteUrl() | Get the url for deleting the record. | string |
getPermissionsUrl() | Get the url for editing the permissions of the record. | string |
getCheckPermissionsUrl() | Get the url for checking user permissions for this record. | string |
getPublishUrl() | Get the url for publishing the record. | string |
getManageUrl() | Get the url for managing records. | string |
getShowFrontendUrl() | Get the url showing the record in the frontend | string |
getDuplicateUrl() | Get the url for duplicating the record. | string |
Blogs\Models\Backend\Post
Post