Colymba\BulkManager\BulkAction\Handler

Base class to extend for all custom bulk action handlers Gives access to the GridField, Component and Controller and implements useful functions like {@link getRecordIDList()} and {@link getRecords()}.

Synopsis

class Handler extends RequestHandler {
}

Hierarchy

Extends

  • SilverStripe\Control\RequestHandler

Members

private

  • $url_segment — string
    URL segment used to call this handler If none given, @BulkManager will fallback to the Unqualified class name

protected

  • $buttonClasses — string
    Extra classes to add to the bulk action button for this handler Can also be used to set the button font-icon e.g. font-icon-trash
  • $componentColymba\BulkManager\BulkAction\GridFieldBulkManager
    GridFieldBulkManager instance.
  • $destructive — boolean
    Set to true is this handler will destroy any data.
  • $gridFieldColymba\BulkManager\BulkAction\GridField
    Related GridField instance.
  • $icon — string
    Front-end icon path 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

Methods

public