NZTA\MemberBookmark\Extensions\BookmarksPageControllerExtension
Synopsis
class BookmarksPageControllerExtension
extends DataExtension
{
- // members
- private static array $allowed_actions = ;
- private static array $dependencies = ;
- public $logger;
- // methods
- public DataList getGlobalBookmarks()
- public bool IsBookmarked()
- public string addremovebookmark()
- private HTTPResponse errorResponse()
- private HTTPResponse successResponse()
- private array getBookmarkFilterOptions()
- private void createBookmarkFromData()
- private DataObject getSiteTree()
- private string getURLTitle()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $allowed_actions — array
- $dependencies
public
- $logger
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.