\BookmarksPageControllerExtension
Synopsis
class BookmarksPageControllerExtension
extends DataExtension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public DataList getGlobalBookmarks()
- public bool IsBookmarked()
- public string addremovebookmark()
- private SS_HTTPResponse errorResponse()
- private SS_HTTPResponse successResponse()
- private array getBookmarkFilterOptions()
- private void createBookmarkFromData()
- private DataObject getSiteTree()
- private string getURLTitle()
Hierarchy
Extends
- DataExtension
Members
private
- $allowed_actions — array
Methods
private
- createBookmarkFromData()
- errorResponse() — Send back an error response.
- getBookmarkFilterOptions()
- getSiteTree()
- getURLTitle()
- successResponse() — Send back a successful response. Also pass back any custom data in the body if required.
public
- IsBookmarked() — Helper to check if the current page has been bookmarked by the current user.
- addremovebookmark() — Adding bookmark link for current user if the bookmark has not already been saved. If bookmark exists, bookmark will be removed.
- getGlobalBookmarks() — Helper to get all the {@link GlobalBookmark}s that have been added to the CMS. Excludes any bookmarks that have an ExcludeGroup that the current user is a part of.