| Method | Description | Returns |
|---|---|---|
| getOriginalPath() | Get the original path for the faq page without custom urls applied | string |
| getFullSlug() | As we don't have an ability to set parent for a question, common slug is a full one. | string |
| getFullPath() | string | |
| isSupportingBranches() | Checks whether the record supports branches | bool |
| getAssignedWorkflow() | Get the workflow assigned to the record or entity | Workflow |
| hasAssignedWorkflow() | Check whether the record has an assigned workflow | bool |
| getBranches() | Get the branches associated with the record | Collection |
| getBranchRevisions(RevisionBranch $branch) | Get the revisions for the provided branch | Collection |
| getNumRevisionsWithoutBranch() | Get the number of revisions without branch | int |
| getRevisionsWithoutBranch() | Get all revisions without branch | Collection |
| getId() | int | |
| getSlug() | string | |
| getName() | Also allow getting the question by name | string |
| getQuestion() | string | |
| getState() | string | |
| getCreated() | Get the date the record was created. | DateTime |
| getModified() | Get the last modification date for the record. | DateTime |
| getPublished() | DateTime | |
| getActiveRevision() | QuestionRevision | |
| getRevisions() | Collection (QuestionRevision) | |
| getRevisionById(int $id) | Get the revision with the specified id. | QuestionRevision |
| getLastRevision() | Get the last revision for the entity. If a revision has been added, this will be the newly added revision. | QuestionRevision |
| getSourceQuestion() | Question | |
| getRelatedQuestions() | Collection (Question) | |
| getLanguage() | Language | |
| getSeoSettings() | SeoSettings | |
| getSite() | Site | |
| getCreatedBy() | User | |
| getModifiedBy() | User | |
| getOwner() | User | |
| isPublished() | Check if the record is published. | bool |
| getComments() | Collection (QuestionComment) | |
| getPageRevisionQuestions() | Collection (PageRevisionQuestion) | |
| getTags() | Tags associated with the page | Collection (Tag) |
| getCategories() | Categories associated with the page | Collection (Category) |
| 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 |
| getAvailableLayouts() | Get available layouts | Collection |
| getAvailableUsers() | Get available users | Collection |
| getAvailableQuestions() | Get all available questions that don't match the current one | Collection |
| getStateData() | Gets all states indexed by state value and value is State label. | array |
| getTotalCommentsCount() | Get the total number of comments. In the backend, this is calculated on the fly based on user access permissions. | int |
| getCreateChildUrl() | Gets the url for creating a comment. Usually this method is used to get the url for creating a child record, but for current class it's used for creating comments. | 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 |
| getAvailableSaveActions(?Coredna\Kernel\Models\Model|null $currentRevision) | Get the save actions available for the record and provided revision being edited | array |
| getAvailableSaveNewActions() | Get the actions available for saving a new version of the record. Determined whether an active revision can be set directly, and in which order the actions should be returned. | array |
| getRevisionActions(Coredna\Kernel\Models\Model $revision, ?Coredna\Kernel\Models\Model|null $currentRevision) | Get the actions available for the provided revision | array |
| getUpdateRevisionId(Coredna\Kernel\Models\Revision $revision) | Get the revision ID to use when updating the record. If the provided revision is a draft, the previous id is returned, if one exists. | int |
Faq\Models\Backend\Question
Question