\KapostGridFieldDetailForm_ItemRequest
Synopsis
class KapostGridFieldDetailForm_ItemRequest
extends GridFieldDetailForm_ItemRequest
{
- // members
- private static array $allowed_actions = ;
- // methods
- public Form ItemEditForm()
- public string convert()
- public Form ConvertObjectForm()
- public mixed doConvertObject()
- public bool newPage()
- public bool replacePage()
- public bool merge()
- public SS_HTTPResponse redirect()
- public SS_HTTPResponse redirectBack()
- private string|bool getDestinationClass()
- private void cleanUpExpiredPreviews()
Hierarchy
Extends
- GridFieldDetailForm_ItemRequest
Members
private
- $allowed_actions
Methods
private
- cleanUpExpiredPreviews() — Cleans up expired Kapost previews after twice the token expiry
- getDestinationClass() — Gets the destination class for the record
public
- ConvertObjectForm() — Form used for defining the conversion form
- ItemEditForm() — Builds an item edit form. The arguments to getCMSFields() are the popupController and popupFormName, however this is an experimental API and may change.
- convert() — Handles requests for the convert dialog
- doConvertObject() — Handles conversion of the current record
- merge() — Merges data and relations from another object of same class, without conflict resolution. Allows to specify which dataset takes priority in case its not empty. has_one-relations are just transferred with priority 'right'. has_many and many_many-relations are added regardless of priority.
- newPage() — Handles creation of a new page from the current record
- redirect() — Wrapper for the top level controller's redirect()
- redirectBack() — Wrapper for the top level controller's redirectBack()
- replacePage() — Handles creation of a new page from the current record