Colymba\BulkManager\BulkAction\UnlinkHandler
Bulk action handler for unlinking records.
- Author: colymba
Synopsis
class UnlinkHandler
extends Handler
{
- // members
- private static string $url_segment = 'unlink';
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- protected string $label = 'Unlink';
- protected string $icon = '';
- protected string $buttonClasses = 'font-icon-link-broken';
- protected boolean $xhr = true;
- protected boolean $destructive = false;
- // Inherited members from Handler
- protected GridField $gridField;
- protected GridFieldBulkManager $component;
- protected string $label;
- protected string $icon;
- protected string $buttonClasses;
- protected boolean $xhr;
- protected boolean $destructive;
- // methods
- public array getI18nLabel()
- public HTTPBulkToolsResponse unLink()
- // Inherited methods from Handler
- public void __construct()
- public array getConfig()
- public RequestHandler setDestructive()
- public boolean getDestructive()
- public RequestHandler setXhr()
- public boolean getXhr()
- public RequestHandler setButtonClasses()
- public string getButtonClasses()
- public RequestHandler setIcon()
- public string getIcon()
- public RequestHandler setLabel()
- public string getLabel()
- public array getI18nLabel()
- public string Link()
- public array getRecordIDList()
- public DataList getRecords()
Hierarchy
Members
private
- $allowed_actions
—
array
RequestHandler allowed actions. - $url_handlers
—
array
RequestHandler url => action map. - $url_segment
—
string
URL segment used to call this handler If none given, @BulkManager will fallback to the Unqualified class name
protected
- $component
—
Colymba\BulkManager\BulkAction\GridFieldBulkManager
GridFieldBulkManager instance. - $destructive
—
boolean
Set to true is this handler will destroy any data. - $destructive
—
boolean
Set to true is this handler will destroy any data. - $gridField
—
Colymba\BulkManager\BulkAction\GridField
Related GridField instance. - $icon
—
string
Front-end icon path for this handler's action. - $icon
—
string
Front-end icon path for this handler's action. - $label
—
string
Front-end label for this handler's action - $label
—
string
Front-end label for this handler's action - $xhr
—
boolean
Whether this handler should be called via an XHR from the front-end - $xhr
—
boolean
Whether this handler should be called via an XHR from the front-end
Methods
public
- getI18nLabel() — Return i18n localized front-end label
- unLink() — Unlink the selected records passed from the unlink bulk action.
Inherited from Colymba\BulkManager\BulkAction\Handler
public
- Link() — Returns the URL for this RequestHandler.
- getButtonClasses() — Return front-end buttonClasses
- getConfig() — Return front-end configuration
- getDestructive() — True if the hanlder performs destructive actions
- getI18nLabel() — Return i18n localized front-end label
- getIcon() — Return front-end icon
- getLabel() — Return front-end label
- getRecordIDList() — Returns the list of record IDs selected in the front-end.
- getRecords() — Returns a DataList of the records selected in the front-end.
- getXhr() — True if handler is called via XHR
- setButtonClasses() — Set front-end buttonClasses
- setDestructive() — Set if hanlder performs destructive actions
- setIcon() — Set front-end icon
- setLabel() — Set front-end label
- setXhr() — Set if handler is called via XHR